/**
 * Vijaya Lakshmi Rank Sutra — Auth pages (login/signup)
 * Responsive: all screen sizes, safe areas
 * Load rs-design-tokens.css via <link> before this stylesheet.
 */
html.auth-html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.auth-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  font-family: var(--rs-font);
  background:
    radial-gradient(ellipse 100% 75% at 50% -18%, rgba(234, 88, 12, 0.12), transparent 56%),
    radial-gradient(ellipse 55% 45% at 100% 15%, rgba(251, 191, 36, 0.06), transparent 48%),
    linear-gradient(165deg, var(--rs-page-bg) 0%, var(--rs-orange-mid) 38%, var(--rs-surface) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  padding: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* ——— Top bar ——— */
.auth-topbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  row-gap: 10px;
  min-height: calc(52px + env(safe-area-inset-top, 0px) + 10px);
  padding: calc(env(safe-area-inset-top, 0px) + 10px) clamp(12px, 4vw, 28px) 14px;
  background: var(--rs-nav-bg);
  backdrop-filter: var(--rs-blur-nav);
  -webkit-backdrop-filter: var(--rs-blur-nav);
  border-bottom: 1px solid var(--rs-nav-border);
  box-shadow: var(--rs-shadow-xs);
}

.auth-brand-link {
  text-decoration: none;
  color: inherit;
  text-align: left;
  line-height: 1.15;
  max-width: min(100%, 220px);
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

@media (min-width: 400px) {
  .auth-brand-link {
    max-width: 280px;
  }
}

.auth-brand-name {
  display: block;
  font-weight: 800;
  font-size: clamp(0.7rem, 2.8vw, 0.82rem);
  color: #78716c;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-brand-accent {
  display: block;
  font-family: var(--rs-font-display);
  font-weight: 700;
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  color: var(--rs-orange-dark);
  letter-spacing: -0.03em;
  margin-top: 2px;
}

.auth-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Outlined button — matches app nav, clearly not plain text */
.auth-topbar-link {
  flex-shrink: 0;
  box-sizing: border-box;
  color: #c2410c;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 10px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid #fed7aa;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 10px rgba(234, 88, 12, 0.08);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.auth-topbar-link:hover,
.auth-topbar-link:focus-visible {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
  outline: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(234, 88, 12, 0.14);
}

.auth-topbar-link:active {
  transform: scale(0.98);
  background: #ffedd5;
}

/* Primary CTA in top bar (Sign up / Log in) */
.auth-topbar-action {
  flex-shrink: 0;
  box-sizing: border-box;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 10px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: none;
  background: linear-gradient(165deg, #f97316 0%, #ea580c 55%, #c2410c 100%);
  box-shadow:
    0 4px 16px rgba(234, 88, 12, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    filter 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.auth-topbar-action:hover,
.auth-topbar-action:focus-visible {
  filter: brightness(1.05);
  outline: none;
  box-shadow:
    0 6px 22px rgba(234, 88, 12, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.auth-topbar-action:active {
  transform: scale(0.98);
  filter: brightness(0.98);
}

/* ——— Main shell ——— */
.auth-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: clamp(24px, 6vw, 40px) clamp(12px, 4.5vw, 32px);
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.auth-shell--form-long {
  justify-content: flex-start;
  padding-top: clamp(16px, 4vw, 28px);
}

/* ——— Card ——— */
.auth-card {
  width: 100%;
  max-width: min(440px, 100%);
  min-width: 0;
  background-color: var(--rs-surface);
  background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-radius: var(--rs-radius-lg);
  padding: clamp(28px, 6vw, 40px) clamp(18px, 4.5vw, 36px);
  box-shadow: var(--rs-shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-sizing: border-box;
  overflow-x: hidden;
}

.auth-card--wide {
  max-width: min(480px, 100%);
  padding: clamp(22px, 4.5vw, 34px) clamp(16px, 4vw, 28px);
  box-shadow: var(--rs-shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

/* Signup: dense vertical rhythm, premium micro-labels (h1/lead overridden below after .auth-card rules) */
.auth-card--wide .auth-form {
  gap: 13px;
}

.auth-card--wide .auth-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78716c;
  margin-bottom: 5px;
  line-height: 1.25;
}

.auth-card--wide .auth-label .auth-hint,
.auth-card--wide .auth-label .auth-optional {
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 0.7rem;
  color: #a8a29e;
}

.auth-card--wide .auth-input,
.auth-card--wide .auth-select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border-width: 1.5px;
}

.auth-card--wide .auth-select {
  padding-right: 40px;
  background-position: right 12px center;
}

.auth-card--wide .auth-row-2 {
  gap: 12px;
}

.auth-card--wide .auth-check-row {
  padding: 11px 12px;
  border-radius: 12px;
  margin-top: 2px;
}

.auth-card--wide .auth-check-row label {
  font-size: 0.75rem;
  line-height: 1.42;
  font-weight: 500;
}

.auth-card--wide .auth-btn-submit {
  min-height: 50px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 0.9375rem;
}

.auth-card--wide .auth-footer-links {
  margin-top: 18px;
  padding-top: 16px;
  font-size: 0.875rem;
}

.auth-card--wide .auth-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  font-size: 0.8125rem;
}

.auth-card h1 {
  text-align: center;
  font-family: var(--rs-font-display);
  color: var(--rs-ink);
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.auth-card .auth-lead {
  text-align: center;
  color: var(--rs-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 26px;
}

.auth-card.auth-card--wide h1 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 3.8vw, 1.4rem);
}

.auth-card.auth-card--wide .auth-lead {
  margin: 0 0 18px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ——— Form fields — uniform spacing between all label+input groups ——— */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.auth-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #44403c;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
}

.auth-label .auth-optional {
  font-weight: 500;
  color: #a8a29e;
}

.auth-input,
.auth-select {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 2px solid #fed7aa;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.25;
  color: #1c1917;
  background: #fff;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a3412' d='M1 1.5L6 6l5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.auth-input::placeholder {
  color: #a8a29e;
}

.auth-input:focus,
.auth-select:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.auth-row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  min-width: 0;
}

@media (max-width: 480px) {
  .auth-row-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .auth-card--wide .auth-row-2 {
    gap: 12px;
  }
}

.auth-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px clamp(12px, 3vw, 16px);
  background: #fffbeb;
  border-radius: 14px;
  border: 1px solid #fed7aa;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-check-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #ea580c;
  cursor: pointer;
  /* Never pre-checked by autofill heuristics; user must opt in explicitly */
  appearance: auto;
  -webkit-appearance: auto;
}

.auth-check-row label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #57534e;
  line-height: 1.5;
  cursor: pointer;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
}

.auth-check-row a {
  color: #ea580c;
  font-weight: 700;
}

.auth-legal-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #57534e;
  background: #fafaf9;
  border-radius: 12px;
  border: 1px solid #e7e5e4;
}

.auth-legal-note a {
  color: #c2410c;
  font-weight: 700;
  text-decoration: none;
}

.auth-legal-note a:hover {
  text-decoration: underline;
}

.auth-btn-submit {
  width: 100%;
  min-height: 54px;
  margin: 0;
  background: linear-gradient(165deg, #f97316, #ea580c);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 28px rgba(234, 88, 12, 0.35);
  letter-spacing: 0.02em;
}

.auth-btn-submit:active {
  transform: scale(0.99);
}

.auth-footer-links {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #ffedd5;
  font-size: 0.9rem;
  color: #57534e;
  line-height: 1.6;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* ——— Signup: mobile — one page scroll, compact (no nested scroll area) ——— */
@media (max-width: 480px) {
  .auth-shell,
  .auth-shell--form-long {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .auth-shell--form-long {
    padding-top: 12px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    align-items: stretch;
    justify-content: flex-start;
  }
  .auth-card--wide {
    max-width: 100%;
    padding: 20px clamp(14px, 4vw, 18px) 22px;
    border-radius: 18px;
  }
  .auth-card.auth-card--wide h1 {
    padding: 0 2px;
    overflow-wrap: anywhere;
  }
  .auth-card.auth-card--wide .auth-lead {
    margin-bottom: 14px;
    padding: 0 2px;
    overflow-wrap: anywhere;
  }
  .auth-form {
    gap: 16px;
  }
  .auth-card--wide .auth-form {
    gap: 11px;
  }
  .auth-label {
    margin-bottom: 6px;
    font-size: 0.8rem;
  }
  .auth-card--wide .auth-label {
    margin-bottom: 4px;
    font-size: 0.6875rem;
  }
  .auth-input,
  .auth-select {
    min-height: 46px;
    padding: 0 14px;
    font-size: 16px;
    border-radius: 12px;
    max-width: 100%;
  }
  .auth-card--wide .auth-input,
  .auth-card--wide .auth-select {
    min-height: 44px;
  }
  .auth-check-row {
    padding: 12px clamp(10px, 3vw, 14px);
  }
  .auth-card--wide .auth-check-row {
    padding: 9px 10px;
  }
  .auth-check-row label {
    font-size: 0.78rem;
    line-height: 1.5;
  }
  .auth-card--wide .auth-check-row label {
    font-size: 0.72rem;
    line-height: 1.4;
  }
  .auth-btn-submit {
    min-height: 48px;
  }
  .auth-card--wide .auth-btn-submit {
    min-height: 48px;
    margin-top: 2px;
  }
  .auth-footer-links {
    margin-top: 16px;
    padding-top: 14px;
    font-size: 0.85rem;
    padding-left: 4px;
    padding-right: 4px;
  }
}

@media (max-width: 360px) {
  .auth-topbar-link,
  .auth-topbar-action {
    padding: 8px 12px;
    font-size: 0.8125rem;
    min-height: 42px;
  }
  .auth-brand-link {
    max-width: min(100%, 200px);
  }
}

.auth-footer-links a {
  color: #ea580c;
  font-weight: 700;
  text-decoration: none;
}

.auth-notice {
  background: #ecfdf5;
  color: #166534;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-align: center;
  border: 1px solid #86efac;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  box-sizing: border-box;
}

.auth-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 22px;
  text-align: left;
  border: 1px solid #fecaca;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  box-sizing: border-box;
}

.auth-error-line {
  margin: 0 0 8px;
  line-height: 1.45;
}

.auth-error-line:last-child {
  margin-bottom: 0;
}

.auth-hint {
  font-weight: 500;
  color: #a8a29e;
  font-size: 0.75rem;
  white-space: normal;
}

/* Bot trap — must stay unfilled; hidden from view, not display:none (some bots skip those) */
.auth-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-turnstile {
  display: flex;
  justify-content: center;
  min-height: 1px;
}

.auth-turnstile .cf-turnstile {
  min-height: 65px;
}

/* ——— Portal variants (learner / partner / staff) ——— */
.auth-portal-badge {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #78716c;
  margin: 0 0 10px;
}

.auth-portal-badge--staff {
  color: #c2410c;
}

.auth-card--learner {
  border-left: 4px solid #0d9488;
}

.auth-card--partner {
  border-left: 4px solid #ea580c;
  box-shadow: var(--rs-shadow-lg), 0 0 0 1px rgba(234, 88, 12, 0.1) inset;
}

.auth-card--staff {
  border-left: 4px solid #ea580c;
  box-shadow: var(--rs-shadow-lg), 0 0 0 1px rgba(234, 88, 12, 0.12) inset;
}

.auth-page--learner {
  background:
    radial-gradient(ellipse 100% 75% at 50% -18%, rgba(13, 148, 136, 0.1), transparent 56%),
    radial-gradient(ellipse 55% 45% at 100% 15%, rgba(251, 191, 36, 0.06), transparent 48%),
    linear-gradient(165deg, var(--rs-page-bg) 0%, var(--rs-orange-mid) 38%, var(--rs-surface) 100%);
}

.auth-page--partner {
  background:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(234, 88, 12, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(251, 191, 36, 0.07), transparent 48%),
    linear-gradient(165deg, var(--rs-page-bg) 0%, var(--rs-orange-mid) 40%, var(--rs-surface) 100%);
}

.auth-page--staff {
  background:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(234, 88, 12, 0.12), transparent 58%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(251, 191, 36, 0.06), transparent 48%),
    linear-gradient(165deg, var(--rs-page-bg, #faf8f5) 0%, #fff 45%, #fafaf9 100%);
}

.auth-topbar--staff {
  border-bottom-color: rgba(234, 88, 12, 0.15);
}

.auth-portal-switch {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--rs-muted);
}

.auth-portal-switch a {
  color: #c2410c;
  font-weight: 700;
  text-decoration: none;
}

.auth-portal-switch a:hover {
  text-decoration: underline;
}

.auth-portal-switch__sep {
  margin: 0 6px;
  color: #a8a29e;
  font-weight: 600;
}

.auth-card--staff .auth-portal-switch a {
  color: #c2410c;
}

/* Signup: email OTP (no link) */
.auth-signup-otp-actions {
  margin-top: 10px;
}
.auth-btn-otp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  border: 2px solid rgba(234, 88, 12, 0.35);
  background: #fff;
  color: #c2410c;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.auth-btn-otp:hover {
  background: #fff7ed;
  border-color: #ea580c;
}
.auth-btn-otp:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-btn-otp--primary {
  background: linear-gradient(165deg, #f97316, #ea580c);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.28);
}
.auth-btn-otp--primary:hover {
  filter: brightness(1.05);
}
.auth-signup-hint {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #57534e;
}

/* OTP entry area */
#su-otp-block {
  margin-top: 2px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(234, 88, 12, 0.22);
  background: linear-gradient(165deg, rgba(255, 247, 237, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

#su-otp-block .auth-label {
  margin-bottom: 7px;
}

#su-otp {
  text-align: center;
  letter-spacing: 0.42em;
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  padding-left: 18px;
  padding-right: 12px;
}

#su-otp::placeholder {
  letter-spacing: 0.2em;
  font-weight: 600;
}

#su-otp-block .auth-signup-otp-actions {
  display: flex;
  justify-content: flex-start;
}

#su-otp-block .auth-btn-otp--primary {
  min-width: 154px;
}

#su-verify-msg {
  margin-top: 9px;
  min-height: 1.25rem;
  font-size: 0.8rem;
}

#su-otp-sent-msg {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.14);
}
.auth-signup-hint--center {
  text-align: center;
  margin-top: 10px;
}
.auth-signup-verified {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.09);
  border: 1px solid rgba(22, 163, 74, 0.28);
  color: #166534;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 2px;
}
/* Author `display:flex` must not beat the HTML `hidden` attribute (otherwise the banner shows before verify). */
.auth-signup-verified[hidden] {
  display: none !important;
}
#su-otp-block[hidden] {
  display: none !important;
}
#su-rest-form[hidden],
.auth-signup-rest[hidden] {
  display: none !important;
}
.auth-signup-rest {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.auth-input--locked {
  background: #f5f5f4 !important;
  color: #44403c;
  cursor: default;
}
.auth-signup-verified__icon {
  flex-shrink: 0;
  font-weight: 800;
}
.auth-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

@media (max-width: 480px) {
  #su-otp-block {
    padding: 12px;
    border-radius: 12px;
  }

  #su-otp {
    font-size: 1rem;
    letter-spacing: 0.34em;
  }

  #su-otp-block .auth-btn-otp--primary {
    width: 100%;
    min-width: 0;
  }
}

/* ——— Forgot password: full-screen loader + workbook-style footer links ——— */
.auth-fp-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.auth-fp-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.auth-fp-loader__card {
  max-width: 320px;
  text-align: center;
  padding: 28px 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  border: 1px solid #e2e8f0;
}
.auth-fp-loader__spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #fed7aa;
  border-top-color: #ea580c;
  animation: auth-fp-spin 0.75s linear infinite;
}
@keyframes auth-fp-spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-fp-loader__text {
  margin: 16px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.45;
}
body.auth-fp-loading {
  cursor: wait;
}

.auth-footer-links--workbook {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
  margin-top: 22px;
}
.auth-footer-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(165deg, #f97316, #ea580c);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.28);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.auth-footer-link-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.35);
}
.auth-footer-link-pill--secondary {
  color: #c2410c !important;
  background: #fff;
  border: 2px solid #fed7aa;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.08);
}
.auth-footer-link-pill--secondary:hover {
  background: #fff7ed;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.14);
}

.auth-notice .auth-smtp-hint {
  text-align: left;
  font-weight: 500;
}
