/* ============================================================
   AUTH — shared shell for the account-flow page family
   (Register, Login, OTP, Forgot/Reset Password, Profile
   Completion). Reuses tokens/reset/typography/animations/
   components from the rest of the design system; only the
   centered-card layout and its small chrome live here.
   ============================================================ */

.auth-shell {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px var(--pad-x) 48px;
}

.auth-topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.auth-brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(244, 196, 48, .18), transparent 65%);
}
.auth-brand__mark svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-brand__mark .brand__line { stroke: var(--gold); filter: drop-shadow(0 0 5px rgba(244, 196, 48, .6)); }
.auth-brand__text { font-size: 13.5px; font-weight: 700; letter-spacing: .1em; }

.auth-topbar__actions { display: flex; align-items: center; gap: 10px; }
.auth-topbar .ico-sun { display: none; }
.auth-topbar .ico-moon { display: block; }
[data-theme="light"] .auth-topbar .ico-sun { display: block; }
[data-theme="light"] .auth-topbar .ico-moon { display: none; }

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.auth-card__head { margin-bottom: 28px; }
.auth-card__title {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.auth-card__sub { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.auth-card__sub strong { color: var(--text); font-weight: 600; }

.auth-card__forgot {
  text-align: end;
  margin-bottom: 18px;
}
.auth-card__forgot a { font-size: 13px; color: var(--muted); }
.auth-card__forgot a:hover { color: var(--gold); }

.auth-card__foot {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.auth-card__foot a { color: var(--gold); font-weight: 600; }
.auth-card__foot a:hover { text-decoration: underline; }

.auth-card__terms {
  margin-top: 18px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.auth-back:hover { color: var(--text); }
.auth-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .auth-back svg { transform: scaleX(-1); }

/* Countdown / resend row (OTP page) */
.auth-resend {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-resend button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.auth-resend button:disabled { color: var(--muted); cursor: not-allowed; }

@media (max-width: 460px) {
  .auth-shell { padding-top: 84px; }
  .auth-topbar { padding: 16px; }
}
