/* ============================================================
   Void Hub — Auth Pages Stylesheet
   Extends main.css variables and design language
   ============================================================ */

   
/* ── Auth Layout ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.auth-page__grid {
  position: fixed;
  inset: 0;
  display: none;
  background: none;
  pointer-events: none;
  z-index: 0;
}

.auth-page__orb {
  position: fixed;
  display: none;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.auth-page__orb--violet {
  width: 560px; height: 560px;
  top: -180px; left: -120px;
  background: rgba(124, 58, 237, .14);
}
.auth-page__orb--cyan {
  width: 360px; height: 360px;
  bottom: -80px; right: -60px;
  background: rgba(0, 212, 255, .07);
}

/* ── Auth Nav (minimal) ── */
.auth-nav {
  position: relative;
  z-index: 10;
  padding: 14px var(--space-xl) 0;
}
.auth-nav__inner {
  width: min(1120px, 100%);
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 10px 8px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  background: rgba(13, 17, 23, .72);
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
:root[data-theme="light"] .auth-nav__inner {
  background: rgba(255,255,255,.82);
  border-color: rgba(16,24,40,.08);
  box-shadow: 0 16px 44px rgba(16,24,40,.08);
}
.auth-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
  color: var(--text-primary);
}
.auth-nav__logo-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.auth-nav__logo-mark::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--violet-light);
}
.auth-nav__logo-mark::after {
  content: none;
}
.auth-nav__logo-mark span {
  position: relative;
  z-index: 1;
  transform: translateY(-1px);
}
.auth-nav__logo-accent { color: var(--violet-light); }
.auth-nav__links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.03);
}
.auth-nav__links a {
  padding: 7px 12px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 650;
  transition: background .18s ease, color .18s ease;
}
.auth-nav__links a:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}
.auth-nav__hint {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 14px;
  border-radius: var(--radius-full);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.auth-nav__hint a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: var(--radius-full);
  background: var(--violet);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 750;
}
.auth-nav__hint a:hover {
  background: var(--violet-light);
  color: #fff;
}

/* ── Auth Body ── */
.auth-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  z-index: 1;
}

/* ── Auth Card ── */
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow:
    0 1px 3px rgba(0,0,0,.6),
    0 8px 32px rgba(0,0,0,.5),
    0 0 60px rgba(124, 58, 237, .08);
  position: relative;
}

.auth-card--wide { max-width: 520px; }
.auth-card--wide .auth-hint {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.auth-card::before {
  content: none;
}

/* ── Card Header ── */
.auth-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--violet-light);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-card__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-light);
  flex-shrink: 0;
}

.auth-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: var(--space-xs);
}
.auth-card__title--accent {
  background: linear-gradient(135deg, var(--violet-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-card__sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

/* ── Form Elements ── */
.auth-google {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.auth-google:hover {
  border-color: var(--text-muted);
  background: var(--bg-alt);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.auth-github {
  margin-top: 10px;
}

.auth-github svg {
  color: var(--text-primary);
}

.auth-google svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.auth-google-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: -4px 0 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}

.auth-google-account__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--border-mid);
}

.auth-google-account__avatar--fallback {
  display: grid;
  place-items: center;
  background: var(--bg-base);
  color: var(--text-secondary);
  font-weight: 700;
}

.auth-google-account__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-google-account__meta strong,
.auth-google-account__meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-google-account__meta strong {
  color: var(--text-primary);
  font-size: 14px;
}

.auth-google-account__meta span {
  color: var(--text-muted);
  font-size: 12px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border-subtle);
}

.auth-divider span {
  white-space: nowrap;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.auth-field__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-md);
}

.auth-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.auth-label__optional {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  font-size: 11px;
  margin-left: 4px;
  font-family: var(--font-mono);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.auth-input {
  width: 100%;
  min-width: 0;
  background: var(--bg-base);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  line-height: 1.4;
  -webkit-appearance: none;
}
.auth-input::placeholder { color: var(--text-muted); }
.auth-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
}
.auth-input:focus::placeholder { color: transparent; }
.auth-input--error {
  border-color: var(--wa) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important;
}
.auth-input--success {
  border-color: var(--ac) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .1) !important;
}
.auth-input--has-icon { padding-left: 40px; }
.auth-input--has-action { padding-right: 44px; }

/* leading icon inside input */
.auth-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

/* trailing action (eye toggle) */
.auth-input-action {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s;
}
.auth-input-action:hover { color: var(--text-secondary); }
.auth-input-action svg { width: 16px; height: 16px; }

/* strength bar */
.auth-strength {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.auth-strength__bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--border-subtle);
  transition: background .25s ease;
}
.auth-strength__bar--weak { background: var(--wa); }
.auth-strength__bar--fair { background: var(--gold); }
.auth-strength__bar--strong { background: var(--ac); }

.auth-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  color: var(--text-muted);
  line-height: 1.5;
}
.auth-hint--error { color: var(--wa); }
.auth-hint--success { color: var(--ac); }

/* ── Checkbox ── */
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.auth-check__input {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-mid);
  border-radius: 4px;
  background: var(--bg-base);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  transition: border-color .15s, background .15s;
}
.auth-check__input:checked {
  background: var(--violet);
  border-color: var(--violet);
}
.auth-check__input:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: 1.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.auth-check__input:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.auth-check__label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.auth-check__label a { color: var(--violet-light); }
.auth-check__label a:hover { color: var(--cyan); }
.auth-check__label a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}
.auth-check--remember {
  align-items: center;
  gap: 11px;
}
.auth-check--remember .auth-check__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.auth-check__switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--bg-base);
  border: 1px solid var(--border-mid);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.auth-check__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform .18s ease, background .18s ease;
}
.auth-check--remember .auth-check__input:checked + .auth-check__switch {
  background: rgba(124,58,237,.22);
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.auth-check--remember .auth-check__input:checked + .auth-check__switch::after {
  transform: translateX(18px);
  background: var(--violet-light);
}
.auth-check--remember .auth-check__input:focus-visible + .auth-check__switch {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.auth-check--remember .auth-check__label {
  display: grid;
  gap: 1px;
}
.auth-check--remember .auth-check__label strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.auth-check--remember .auth-check__label small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.25;
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-sm) 0;
}
.auth-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.auth-divider__text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
}

/* ── Submit Button (full-width override) ── */
.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 15px;
  border-radius: var(--radius-md);
  margin-top: var(--space-xs);
  position: relative;
  overflow: hidden;
}
.auth-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* loading spinner inside button */
.auth-submit__spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
.auth-submit.is-loading .auth-submit__spinner { display: block; }
.auth-submit.is-loading .auth-submit__text { opacity: .6; }

/* ── Footer links ── */
.auth-footer {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-footer a { color: var(--violet-light); font-weight: 500; }
.auth-footer a:hover { color: var(--cyan); }

/* ── Flash / Alert ── */
.auth-alert {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 42px 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
  overflow: hidden;
  transition: opacity .22s ease, transform .22s ease, margin .22s ease, padding .22s ease, max-height .22s ease;
}
.auth-alert__icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.auth-alert--error   { background: rgba(239,68,68,.08);   border-color: rgba(239,68,68,.2);   color: #fca5a5; }
.auth-alert--success { background: rgba(34,197,94,.08);   border-color: rgba(34,197,94,.2);   color: #86efac; }
.auth-alert--info    { background: rgba(0,212,255,.07);   border-color: rgba(0,212,255,.18);  color: var(--cyan-light); }
.auth-alert--warning { background: rgba(245,158,11,.08);  border-color: rgba(245,158,11,.2);  color: #fcd34d; }
.auth-alert::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  opacity: .45;
  transform-origin: left center;
}
.auth-alert.is-counting::after {
  animation: authAlertTimer 4.5s linear forwards;
}
.auth-alert.is-dismissing {
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
  transform: translateY(-8px);
  border-width: 0;
}
.auth-alert__close {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  opacity: .7;
  cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
}
.auth-alert__close:hover {
  opacity: 1;
  background: rgba(255,255,255,.06);
}
.auth-alert__close svg {
  width: 13px;
  height: 13px;
}

/* ── Remember / Options row ── */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.auth-options__forgot {
  font-size: 12px;
  color: var(--text-muted);
  transition: color .15s;
}
.auth-options__forgot:hover { color: var(--violet-light); }

.legal-modal[hidden] {
  display: none;
}
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.legal-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  outline: none;
  animation: legalModalIn .18s ease both;
}
:root[data-theme="light"] .legal-modal__panel {
  box-shadow: 0 30px 80px rgba(16,24,40,.18);
}
.legal-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  background: var(--bg-base);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, transform .16s ease;
}
.legal-modal__close:hover {
  color: var(--text-primary);
  border-color: var(--violet);
  transform: translateY(-1px);
}
.legal-modal__close svg {
  width: 15px;
  height: 15px;
}
.legal-modal__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet-light);
}
.legal-modal h2 {
  margin: 0 40px 12px 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.legal-modal p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.legal-modal ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-modal li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.legal-modal li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-light);
}
.legal-modal-open {
  overflow: hidden;
}

/* ── OTP Grid ── */
.otp-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: var(--space-lg) 0;
}

.otp-input {
  width: 52px; height: 60px;
  background: var(--bg-base);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .15s ease;
  caret-color: var(--violet);
  -webkit-appearance: none;
}
.otp-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,58,237,.18), 0 0 12px rgba(124,58,237,.12);
  transform: translateY(-2px);
}
.otp-input.is-filled {
  border-color: rgba(124,58,237,.5);
  color: var(--violet-light);
}
.otp-input.is-error {
  border-color: var(--wa);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
  animation: shake .4s ease;
}

/* OTP email display */
.otp-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--border-subtle);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin: var(--space-sm) 0 var(--space-xs);
}
.otp-email-badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

/* Resend block */
.otp-resend {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 13px;
  color: var(--text-muted);
}
.otp-resend__btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--violet-light);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 0;
  transition: color .15s;
}
.otp-resend__btn:hover:not(:disabled) { color: var(--cyan); }
.otp-resend__btn:disabled { color: var(--text-muted); cursor: default; }

.otp-timer {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Progress ring around timer */
.otp-progress {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-sm);
}
.otp-progress__svg { transform: rotate(-90deg); }
.otp-progress__track { fill: none; stroke: var(--border-subtle); stroke-width: 3; }
.otp-progress__fill  { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .9s linear; }

/* Steps indicator (signup multi-step hint) */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: var(--space-xl);
}
.auth-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-mid);
  transition: background .2s, transform .2s;
}
.auth-step-dot--active {
  background: var(--violet);
  transform: scale(1.25);
}
.auth-step-dot--done { background: var(--ac); }
.auth-step-line {
  width: 24px; height: 1px;
  background: var(--border-mid);
}



/* ── Animations ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  60%       { transform: translateX(5px); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes authAlertTimer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@keyframes legalModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-card { animation: fadeSlideIn .35s ease both; }

/* ── Responsive ── */
@media (max-width: 520px) {
  .auth-body { padding: var(--space-lg) var(--space-md); align-items: flex-start; }
  .auth-card { padding: var(--space-xl) var(--space-md); border-radius: var(--radius-lg); }
  .auth-field__row { grid-template-columns: 1fr; gap: var(--space-md); }
  .otp-input { width: 44px; height: 52px; font-size: 20px; }
  .otp-grid { gap: 7px; }
  .auth-nav { padding: 10px var(--space-md) 0; }
  .auth-nav__inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .auth-nav__brand { justify-content: center; }
  .auth-nav__links { display: none; }
  .auth-nav__hint { justify-content: space-between; width: 100%; }
}

/* Better flash alerts for login/signup pages */
.auth-card .auth-alert {
  margin-bottom: var(--space-md);
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  gap: 12px;
  align-items: flex-start;
  line-height: 1.55;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.auth-card .auth-alert__icon {
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-card .auth-alert span {
  line-height: 1.55;
}

/* Make the password eye feel cleaner */
.auth-input-action {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
}

.auth-input-action:hover {
  background: rgba(255, 255, 255, 0.04);
}

.auth-input-action:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.auth-success-card {
  text-align: center;
}

.auth-success-mark {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  border: 1px solid rgba(34, 197, 94, .28);
  border-radius: 18px;
  background: rgba(34, 197, 94, .12);
  color: var(--ac);
}

.auth-success-mark svg {
  width: 34px;
  height: 34px;
}

.auth-success-card .auth-card__eyebrow {
  justify-content: center;
}

.auth-success-sub {
  max-width: 390px;
  margin-inline: auto;
}

.auth-success-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: var(--space-xl) 0;
}

.auth-success-steps span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 750;
}

.auth-success-actions {
  display: grid;
  gap: 10px;
}

.auth-success-primary {
  text-decoration: none;
}

.auth-success-secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.auth-success-secondary:hover {
  color: var(--text-primary);
  border-color: var(--violet);
}
