@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(168, 100, 47, 0.07), transparent 30%),
    radial-gradient(circle at bottom right, rgba(154, 114, 41, 0.06), transparent 24%),
    linear-gradient(180deg, #faf8f5 0%, #f4f2ee 40%, #ebe7e1 100%);
}

.auth-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg), var(--glow-soft);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}

.auth-brand .brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(138, 79, 34, 0.12);
  border: 1px solid rgba(58, 48, 40, 0.1);
}

.auth-brand-copy strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.auth-brand-copy span {
  color: var(--muted);
  font-size: 13px;
}

.auth-page-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  color: var(--ink-soft);
}

.auth-brand-copy {
  display: grid;
  gap: 2px;
}

.auth-brand-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-brand-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
}

.auth-brand-copy h1.auth-page-title {
  margin: 0 0 8px;
}

.auth-brand + p {
  margin-top: 0;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  color: var(--text);
  font-size: 13px;
}

.auth-form input {
  width: 100%;
}

.auth-error {
  min-height: 18px;
  color: var(--red);
  font-weight: 700;
}

.auth-link {
  margin-top: 18px;
  color: var(--muted);
}

.auth-link a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.auth-notice {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(247, 249, 252, 0.98);
  color: var(--muted);
  line-height: 1.45;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--control-height);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
}

.auth-theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
}

html[data-theme="dark"] .auth-body {
  background:
    radial-gradient(circle at top left, rgba(212, 145, 90, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(154, 114, 41, 0.08), transparent 22%),
    linear-gradient(180deg, #14110f 0%, var(--bg) 40%, var(--bg-strong) 100%);
}

html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .auth-notice,
html[data-theme="dark"] .user-chip {
  background: var(--panel-elevated);
}

/* First Bit authentication screens. */
body.auth-body {
  min-height: 100vh;
  padding: 24px;
  background: #ffffff !important;
  color: #000000 !important;
  font-family: "Inter", Arial, sans-serif !important;
}

body.auth-body .auth-card {
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body.auth-body .auth-brand {
  margin-bottom: 34px;
}

.auth-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: #000000;
  font-family: "Inter", Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.auth-wordmark b {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 3px 2px 1px;
  background: #e50071;
  color: transparent;
  font-size: 0;
}

body.auth-body .auth-brand-copy strong,
body.auth-body .auth-page-title {
  color: #000000 !important;
  font-family: "Inter", Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

body.auth-body .auth-brand-copy span,
body.auth-body .auth-card > p,
body.auth-body .auth-link,
body.auth-body .auth-form label {
  color: #707070 !important;
}

body.auth-body .auth-page-title {
  font-size: 30px;
  font-weight: 800;
}

body.auth-body .auth-form input {
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid #d9d9d9 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: none !important;
}

body.auth-body .auth-form button {
  min-height: 44px;
  border: 1px solid #e50071;
  border-radius: 0;
  background: #e50071;
  color: #ffffff;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

body.auth-body .auth-form button:hover {
  border-color: #c90063;
  background: #c90063;
}

body.auth-body .auth-link a {
  color: #e50071 !important;
}

body.auth-body .auth-theme-toggle {
  border-radius: 0;
  border-color: #d9d9d9;
  background: #ffffff;
  color: #000000;
}
