/* ══════════════════════════════════════════════════
   auth.css — فامیناب — Two-column Auth
   Dark + Light (warm cream) modes
   ══════════════════════════════════════════════════ */

[hidden] { display: none !important; }

/* ── Theme tokens ── */
.auth-body {
  --ab-bg: #081425;
  --ab-panel-bg: rgba(8,21,39,0.94);
  --ab-panel-border: rgba(148, 177, 211, 0.2);
  --ab-card-bg: transparent;
  --ab-card-border: none;
  --ab-card-shadow: none;
  --ab-text: #e2e8f0;
  --ab-text-mid: #c2d4ec;
  --ab-text-muted: #9fb7d3;
  --ab-text-faint: #89a4c3;
  --ab-input-bg: rgba(15, 34, 58, 0.9);
  --ab-input-border: rgba(149, 178, 212, 0.32);
  --ab-input-focus: rgba(240, 192, 64, 0.72);
  --ab-input-glow: rgba(240, 192, 64, 0.2);
  --ab-divider: rgba(149, 178, 212, 0.28);
  --ab-social-bg: rgba(14, 33, 57, 0.82);
  --ab-social-border: rgba(149, 178, 212, 0.3);
  --ab-social-hover: rgba(24, 50, 82, 0.95);
  --ab-fc-bg: rgba(12, 28, 48, 0.72);
  --ab-fc-border: rgba(149, 178, 212, 0.24);
  --ab-fc-icon-bg: rgba(240, 192, 64, 0.2);
  --ab-spotlight: rgba(240, 192, 64, 0.12);
  --ab-tab-active: #0d1b2a;
  --ab-dot-grid: rgba(157,176,199,0.085);
}
[data-theme="light"] .auth-body {
  --ab-bg: #FFFFFF;
  --ab-panel-bg: #F4F5F7;
  --ab-panel-border: rgba(0,0,0,0.06);
  --ab-card-bg: transparent;
  --ab-card-border: none;
  --ab-card-shadow: none;
  --ab-text: #0D1B2A;
  --ab-text-mid: #1B2E45;
  --ab-text-muted: #64748B;
  --ab-text-faint: #94A3B8;
  --ab-input-bg: #F4F5F7;
  --ab-input-border: rgba(0,0,0,0.1);
  --ab-input-focus: rgba(201,162,39,0.4);
  --ab-input-glow: rgba(201,162,39,0.08);
  --ab-divider: rgba(0,0,0,0.06);
  --ab-social-bg: #F4F5F7;
  --ab-social-border: rgba(0,0,0,0.08);
  --ab-social-hover: #EDEEF1;
  --ab-fc-bg: #FFFFFF;
  --ab-fc-border: rgba(0,0,0,0.06);
  --ab-fc-icon-bg: rgba(201,162,39,0.08);
  --ab-spotlight: rgba(201,162,39,0.04);
  --ab-tab-active: #0D1B2A;
  --ab-dot-grid: rgba(0,0,0,0.03);
}

/* ── Base ── */
.auth-body {
  height: 100vh; height: 100dvh;
  overflow: hidden;
  background: radial-gradient(100% 140% at 100% 0%, #11233d 0%, var(--ab-bg) 60%, #060f1d 100%);
  color: var(--ab-text);
  transition: background 0.4s, color 0.4s;
}

/* ══════════════════════════
   PAGE — 2 col: brand 380px | form 1fr
   ══════════════════════════ */
.auth-page {
  display: grid;
  grid-template-columns: 30% 70%;
  height: 100vh; height: 100dvh;
}

/* ══════════════════════════
   BRAND PANEL (right in RTL, fixed width)
   ══════════════════════════ */
.auth-brand {
  position: relative;
  background: var(--ab-panel-bg);
  border-left: 1px solid var(--ab-panel-border);
  overflow: hidden;
  transition: background 0.4s, border-color 0.4s;
}
.auth-mesh {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}
.auth-brand-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, var(--ab-bg) 100%);
  transition: background 0.4s;
}

.auth-brand-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: flex-start;
  padding: 36px 28px;
  width: 100%; height: 100%;
}

/* Brand logo */
.auth-brand-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 10px;
}
.auth-brand-logo .site-logo {
  height: 48px;
  max-width: 200px;
}
.auth-brand-name {
  font-size: 1.2rem; font-weight: 900; display: block; line-height: 1;
  background: linear-gradient(135deg, #C9A227, #F2D05C);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-brand-tag {
  font-size: 0.64rem; color: var(--ab-text-faint); display: block; margin-top: 2px; margin-bottom: 8px;
  transition: color 0.4s;
}
.auth-brand-headline {
  font-size: 0.76rem; font-weight: 600; color: var(--ab-text-muted);
  margin-bottom: 6px;
  transition: color 0.4s;
}

/* ── Feature cards — tight, centered ── */
.auth-float-area {
  display: flex; flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: center;
  width: 100%;
}
.auth-float-card {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--ab-fc-bg);
  border: 1px solid var(--ab-fc-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s, background 0.4s, border-color 0.4s;
  will-change: transform;
  animation: fcIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.auth-float-card[data-delay="1"] { animation-delay: 0.07s; }
.auth-float-card[data-delay="2"] { animation-delay: 0.14s; }
.auth-float-card[data-delay="3"] { animation-delay: 0.21s; }
@keyframes fcIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.auth-float-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.auth-fc-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.92rem;
  background: var(--ab-fc-icon-bg);
  color: var(--color-gold-400, #C9A84C);
  transition: background 0.4s;
}
.auth-fc-title {
  font-size: 0.76rem; font-weight: 700; color: var(--ab-text);
  margin-bottom: 1px; transition: color 0.4s;
}
.auth-fc-desc {
  font-size: 0.64rem; color: var(--ab-text-faint); line-height: 1.35;
  transition: color 0.4s;
}

/* Brand footer */
.auth-brand-footer {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 0.62rem; color: var(--ab-text-faint);
  margin-top: auto; padding-top: 20px;
  transition: color 0.4s;
}
.auth-brand-footer span { display: flex; align-items: center; gap: 3px; }
.auth-brand-footer i { color: rgba(201,162,39,0.4); font-size: 0.66rem; }

/* ══════════════════════════
   FORM PANEL (left in RTL, 1fr)
   ══════════════════════════ */
.auth-form-panel {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 100vh; height: 100dvh;
  overflow-y: auto;
  padding: 20px 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--ab-divider) transparent;
}
.auth-form-panel::-webkit-scrollbar { width: 4px; }
.auth-form-panel::-webkit-scrollbar-track { background: transparent; }
.auth-form-panel::-webkit-scrollbar-thumb { background: var(--ab-divider); border-radius: 99px; }

/* Dot grid background on form side */
.auth-form-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--ab-dot-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0,0,0,0.6) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0,0,0,0.6) 0%, transparent 80%);
  transition: background-image 0.4s;
}

.auth-card {
  width: 100%; max-width: 460px;
  position: relative;
  animation: cardIn 0.6s cubic-bezier(0.22,1,0.36,1) both;
  margin: auto 0;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card top row ── */
.auth-card-top {
  display: flex; align-items: center; justify-content: flex-end;
  margin-bottom: 20px;
}
.auth-mobile-logo {
  display: none;
  align-items: center; gap: 8px;
  text-decoration: none;
}
.auth-mobile-logo .site-logo {
  height: 28px;
  max-width: 120px;
}

/* Theme toggle */
.auth-theme-btn {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--ab-input-bg);
  border: 1px solid var(--ab-input-border);
  cursor: pointer; font-size: 0.88rem;
  color: var(--ab-text-muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.auth-theme-btn:hover {
  color: var(--color-gold-400, #C9A84C);
  border-color: var(--ab-input-focus);
}

.auth-theme-btn:focus-visible,
.auth-tab:focus-visible,
.auth-input:focus-visible,
.auth-eye:focus-visible,
.auth-check:focus-within .auth-check-box,
.auth-submit:focus-visible,
.auth-social-btn:focus-visible,
.auth-role:focus-within,
.auth-otp-link:focus-visible,
.auth-resend:focus-visible,
.auth-back-btn:focus-visible,
.auth-forgot:focus-visible {
  outline: 2px solid rgba(240, 192, 64, 0.9);
  outline-offset: 2px;
}
[data-theme="dark"] .auth-theme-icon--dark,
[data-theme="light"] .auth-theme-icon--light { display: none; }
[data-theme="dark"] .auth-theme-icon--light,
[data-theme="light"] .auth-theme-icon--dark { display: inline; }

/* ── Title area ── */
.auth-title {
  font-size: 1.15rem; font-weight: 800; color: var(--ab-text);
  margin: 0; transition: color 0.4s;
}
.auth-subtitle {
  font-size: 0.74rem; color: var(--ab-text-muted);
  margin: 2px 0 0; transition: color 0.4s;
}

/* ══════════════════════════
   TABS
   ══════════════════════════ */
.auth-tabs {
  display: flex; position: relative;
  background: var(--ab-input-bg);
  border: 1px solid var(--ab-input-border);
  border-radius: 12px; padding: 3px;
  margin-bottom: 18px;
  transition: background 0.4s, border-color 0.4s;
}
.auth-tab {
  flex: 1; padding: 9px 0; text-align: center;
  font-size: 0.84rem; font-weight: 700;
  color: var(--ab-text-faint);
  background: none; border: none; font-family: inherit;
  cursor: pointer; border-radius: 10px;
  transition: color 0.25s;
  position: relative; z-index: 2;
}
.auth-tab--active { color: var(--ab-tab-active); }
.auth-tab-indicator {
  position: absolute; top: 3px; bottom: 3px;
  width: calc(50% - 3px); border-radius: 10px;
  background: linear-gradient(135deg, #C9A227, #F2D05C);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1; right: 3px;
}
.auth-tab-indicator--register { transform: translateX(-100%); }

/* ══════════════════════════
   FORM
   ══════════════════════════ */
.auth-form {
  display: flex; flex-direction: column; gap: 14px;
}
.auth-form--enter { animation: formIn 0.35s cubic-bezier(0.22,1,0.36,1) both; }
.auth-form--exit  { animation: formOut 0.18s ease both; pointer-events: none; }
@keyframes formIn  { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes formOut { from { opacity:1; } to { opacity:0; transform:translateY(-8px); } }

.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.auth-label { font-size: 0.74rem; font-weight: 600; color: var(--ab-text-mid); transition: color 0.4s; }
.auth-label-row { display: flex; justify-content: space-between; align-items: center; }
.auth-req { color: #ef4444; }
.auth-forgot { font-size: 0.72rem; color: var(--color-gold-400,#C9A84C); text-decoration: none; }
.auth-forgot:hover { color: var(--color-gold-200,#F2D05C); }

/* Inputs */
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-icon {
  position: absolute; right: 12px;
  font-size: 0.85rem; color: var(--ab-text-faint);
  pointer-events: none; z-index: 1; transition: color 0.2s;
}
.auth-input-wrap:focus-within .auth-input-icon { color: rgba(201,162,39,0.55); }
.auth-input {
  width: 100%; padding: 11px 12px;
  background: var(--ab-input-bg);
  border: 1px solid var(--ab-input-border);
  border-radius: 10px; outline: none;
  font-family: inherit; font-size: 0.84rem; color: var(--ab-text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.4s;
}
.auth-input-wrap .auth-input { padding-right: 36px; }
.auth-input--pass { padding-left: 36px; }
.auth-input::placeholder { color: var(--ab-text-faint); }
.auth-input:focus {
  border-color: var(--ab-input-focus);
  box-shadow: 0 0 0 3px var(--ab-input-glow);
}

[data-theme="dark"] .auth-input::placeholder {
  color: #95aecb;
}
.auth-input--error {
  border-color: rgba(239,68,68,0.5) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08) !important;
}

.auth-eye {
  position: absolute; left: 7px;
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 0.85rem; color: var(--ab-text-faint);
  background: none; border: none; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.auth-eye:hover { color: var(--ab-text-mid); background: var(--ab-input-bg); }

/* Check */
.auth-check-row { margin: -2px 0; }
.auth-check {
  display: flex; align-items: center; gap: 7px;
  cursor: pointer; font-size: 0.76rem; color: var(--ab-text-muted);
  transition: color 0.4s;
}
.auth-check input { display: none; }
.auth-check-box {
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  border: 1.5px solid var(--ab-input-border);
  background: var(--ab-input-bg);
  display: grid; place-items: center;
  transition: all 0.15s;
}
.auth-check input:checked + .auth-check-box {
  background: var(--color-gold-400,#C9A84C);
  border-color: var(--color-gold-400,#C9A84C);
}
.auth-check input:checked + .auth-check-box::after {
  content: ''; width: 4px; height: 7px;
  border: 1.5px solid #0d1b2a; border-top: none; border-right: none;
  transform: rotate(-45deg) translateY(-1px);
}
.auth-check a { color: var(--color-gold-400,#C9A84C); text-decoration: none; }

/* ══════════════════════════
   SUBMIT
   ══════════════════════════ */
.auth-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 20px; border-radius: 12px;
  font-size: 0.9rem; font-weight: 800; font-family: inherit;
  cursor: pointer;
  background: linear-gradient(180deg,#F6D578 0%,#F0C040 30%,#D4AF37 62%,#B8870C 100%);
  color: #2a1d05;
  border: 1px solid rgba(255,240,190,0.5);
  box-shadow: inset 0 1px 0 rgba(255,248,222,0.7), 0 2px 0 #97701d, 0 6px 16px rgba(166,124,46,0.25);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.auth-submit::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.5) 48%, transparent 60%);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,248,222,0.75), 0 4px 0 #97701d, 0 12px 24px rgba(166,124,46,0.35);
}
.auth-submit:hover::before { transform: translateX(130%) skewX(-18deg); }
.auth-submit:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,248,222,0.5), 0 1px 0 #97701d; }
.auth-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

[data-theme="light"] .auth-submit {
  background: linear-gradient(160deg, #BF9B30 0%, #DFBD43 25%, #F5D96B 50%, #DFBD43 75%, #BF9B30 100%);
  color: #3a2800;
  border: 1px solid rgba(180,140,30,0.35);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 -1px 0 rgba(120,90,15,0.2) inset,
    0 4px 14px rgba(180,140,30,0.2),
    0 2px 0 #a8841a;
  text-shadow: 0 1px 0 rgba(255,220,100,0.3);
}
[data-theme="light"] .auth-submit:hover {
  background: linear-gradient(160deg, #CFAB3A 0%, #EFCD4D 25%, #FDE97A 50%, #EFCD4D 75%, #CFAB3A 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 -1px 0 rgba(120,90,15,0.15) inset,
    0 8px 24px rgba(180,140,30,0.25),
    0 3px 0 #a8841a;
  transform: translateY(-2px);
}
[data-theme="light"] .auth-submit:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(120,90,15,0.2) inset, 0 1px 0 #a8841a;
}

.auth-submit--outline {
  background: transparent; color: var(--color-gold-400,#C9A84C);
  border: 1.5px solid rgba(201,162,39,0.25); box-shadow: none;
}
.auth-submit--outline::before { display: none; }
.auth-submit--outline:hover { background: rgba(201,162,39,0.05); border-color: rgba(201,162,39,0.45); box-shadow: none; transform: none; }

[data-theme="dark"] .auth-submit--outline {
  color: #f0c040;
  border-color: rgba(240, 192, 64, 0.5);
  background: rgba(16, 35, 60, 0.55);
}
[data-theme="dark"] .auth-submit--outline:hover {
  background: rgba(26, 52, 84, 0.8);
  border-color: rgba(240, 192, 64, 0.75);
}

/* ══════════════════════════
   OTP
   ══════════════════════════ */
.auth-alt-method { text-align: center; margin: -2px 0; }
.auth-otp-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.76rem; font-weight: 600; color: var(--color-gold-400,#C9A84C);
  background: none; border: none; font-family: inherit; cursor: pointer;
}
.auth-otp-link:hover { color: var(--color-gold-200,#F2D05C); }
.auth-back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.76rem; color: var(--ab-text-faint);
  background: none; border: none; font-family: inherit; cursor: pointer; padding: 0;
}
.auth-back-btn:hover { color: var(--ab-text-muted); }
.auth-otp-section { display: flex; flex-direction: column; gap: 12px; }
.auth-otp-boxes { display: flex; gap: 8px; direction: ltr; justify-content: center; }
.auth-otp-box {
  width: 46px; height: 50px; border-radius: 10px;
  background: var(--ab-input-bg); border: 1.5px solid var(--ab-input-border);
  font-size: 1.25rem; font-weight: 800; text-align: center;
  color: var(--ab-text); outline: none; font-family: inherit;
  transition: border-color 0.2s, background 0.2s, color 0.4s;
}
.auth-otp-box:focus { border-color: var(--ab-input-focus); }
.auth-otp-box--filled { border-color: rgba(34,197,94,0.35); }
.auth-otp-box--error { border-color: rgba(239,68,68,0.45); animation: authShake 0.35s ease; }
.auth-otp-timer { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: var(--ab-text-faint); }
.auth-resend { font-size: 0.72rem; font-weight: 600; color: var(--color-gold-400,#C9A84C); background: none; border: none; font-family: inherit; cursor: pointer; }
.auth-resend:disabled { opacity: 0.3; cursor: not-allowed; }

/* ══════════════════════════
   DIVIDER / SOCIAL
   ══════════════════════════ */
.auth-divider { display: flex; align-items: center; gap: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--ab-divider); transition: background 0.4s; }
.auth-divider span { font-size: 0.68rem; color: var(--ab-text-faint); }

.auth-social-row { display: flex; gap: 8px; }
.auth-social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 0; border-radius: 10px;
  font-size: 0.8rem; font-weight: 600; font-family: inherit;
  color: var(--ab-text-mid);
  background: var(--ab-social-bg); border: 1px solid var(--ab-social-border);
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.auth-social-btn:hover { background: var(--ab-social-hover); color: var(--ab-text); }

/* ══════════════════════════
   ROLE
   ══════════════════════════ */
.auth-entity-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.auth-entity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.35);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ab-text-faint);
}
.auth-entity input { display: none; }
.auth-entity:hover { border-color: var(--ab-input-focus); }
.auth-entity--sel {
  border-color: rgba(201, 162, 39, 0.45) !important;
  background: rgba(201, 162, 39, 0.08) !important;
  color: var(--color-gold-300, #EBCB8C);
}

.auth-role-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.auth-role {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 2px; border-radius: 10px;
  background: var(--ab-social-bg); border: 1.5px solid var(--ab-social-border);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.auth-role input { display: none; }
.auth-role:hover { border-color: var(--ab-input-focus); }
.auth-role--sel { border-color: rgba(201,162,39,0.4) !important; background: rgba(201,162,39,0.04) !important; }
.auth-role-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center; font-size: 0.82rem;
  background: var(--ab-fc-icon-bg); color: var(--ab-text-faint); transition: background 0.2s, color 0.2s;
}
.auth-role--sel .auth-role-icon { color: var(--color-gold-400,#C9A84C); }
.auth-role-name { font-size: 0.62rem; font-weight: 600; color: var(--ab-text-faint); transition: color 0.2s; white-space: nowrap; }
.auth-role--sel .auth-role-name { color: var(--color-gold-300,#EBCB8C); }

/* ══════════════════════════
   PASS STRENGTH
   ══════════════════════════ */
.auth-pass-strength { display: flex; align-items: center; gap: 7px; margin-top: -1px; }
.auth-pass-bar { flex: 1; height: 3px; border-radius: 99px; background: var(--ab-divider); overflow: hidden; }
.auth-pass-bar span { display: block; height: 100%; border-radius: 99px; transition: width 0.3s, background 0.3s; }
.auth-pass-label { font-size: 0.64rem; font-weight: 600; }

/* ══════════════════════════
   FOOTER (visible in both mobile & desktop)
   ══════════════════════════ */
.auth-footer {
  margin-top: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.auth-footer-trust {
  display: flex; gap: 12px; justify-content: center;
  font-size: 0.64rem; color: var(--ab-text-faint);
  transition: color 0.4s;
}
.auth-footer-trust span { display: flex; align-items: center; gap: 3px; }
.auth-footer-trust i { color: rgba(201,162,39,0.4); font-size: 0.68rem; }
.auth-footer-copy {
  font-size: 0.6rem; color: var(--ab-text-faint);
  transition: color 0.4s;
}

/* ══════════════════════════
   SHAKE
   ══════════════════════════ */
@keyframes authShake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-4px)} 40%{transform:translateX(4px)} 60%{transform:translateX(-3px)} 80%{transform:translateX(2px)} }
.auth-shake { animation: authShake 0.35s ease; }

/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */

/* Short viewports — compact everything */
@media (max-height: 700px) {
  .auth-card-top { margin-bottom: 14px; }
  .auth-tabs { margin-bottom: 12px; }
  .auth-form { gap: 10px; }
  .auth-input { padding: 9px 10px; font-size: 0.82rem; }
  .auth-submit { padding: 9px 16px; font-size: 0.86rem; }
  .auth-social-btn { padding: 7px 0; font-size: 0.76rem; }
  .auth-float-card { padding: 9px 11px; gap: 9px; }
  .auth-float-area { gap: 8px; }
  .auth-fc-icon { width: 28px; height: 28px; font-size: 0.82rem; border-radius: 7px; }
  .auth-fc-title { font-size: 0.7rem; }
  .auth-fc-desc { font-size: 0.58rem; }
  .auth-brand-content { padding: 24px 22px; }
  .auth-brand-logo { margin-bottom: 6px; }
  .auth-title { font-size: 1.05rem; }
  .auth-subtitle { font-size: 0.7rem; }
  .auth-footer { margin-top: 10px; }
}

/* Tablet & below: hide brand panel, show mobile logo */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-panel { padding: 20px 20px 80px; }
  .auth-mobile-logo { display: flex; }
  .auth-card-top { justify-content: space-between; }
  .auth-card { max-width: 420px; }
}

/* Mobile */
@media (max-width: 480px) {
  .auth-form-panel { padding: 16px 14px 80px; }
  .auth-card { max-width: 100%; }
  .auth-field-row { grid-template-columns: 1fr; gap: 10px; }
  .auth-otp-box { width: 42px; height: 46px; font-size: 1.1rem; }
  .auth-form-panel::before { display: none; }
}

@media (max-width: 360px) {
  .auth-otp-boxes { gap: 5px; }
  .auth-otp-box { width: 38px; height: 42px; font-size: 1rem; border-radius: 8px; }
}

/* ══════════════════════════════════════════════════
   REGISTER WIZARD
   ══════════════════════════════════════════════════ */

/* Step Indicator */
.auth-wizard-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 28px; padding: 0 8px;
}
.auth-wz-step {
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.auth-wz-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800;
  background: var(--auth-input-bg, rgba(255,255,255,0.04));
  border: 1.5px solid var(--auth-border, rgba(255,255,255,0.08));
  color: var(--auth-muted, rgba(148,163,184,0.6));
  transition: all 0.3s;
}
.auth-wz-text {
  font-size: 0.72rem; font-weight: 600;
  color: var(--auth-muted, rgba(148,163,184,0.6));
  transition: color 0.3s;
}
.auth-wz-line {
  flex: 1; height: 2px; min-width: 20px; max-width: 48px;
  background: var(--auth-border, rgba(255,255,255,0.06));
  margin: 0 8px;
  border-radius: 2px;
  transition: background 0.3s;
}
.auth-wz-step--active .auth-wz-num {
  background: linear-gradient(135deg, #C9A227, #D4AF37);
  border-color: transparent;
  color: #0d1b2a;
  box-shadow: 0 3px 12px rgba(201,162,39,0.3);
}
.auth-wz-step--active .auth-wz-text {
  color: var(--auth-text, #e2e8f0);
}
.auth-wz-step--done .auth-wz-num {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.25);
  color: #4ade80;
}
.auth-wz-step--done .auth-wz-text { color: #4ade80; }
.auth-wz-line--done { background: rgba(34,197,94,0.3); }
.auth-wz-line--active { background: rgba(201,162,39,0.3); }

[data-theme="light"] .auth-wz-step--done .auth-wz-num { color: #16a34a; }
[data-theme="light"] .auth-wz-step--done .auth-wz-text { color: #16a34a; }

/* Wizard Panels */
.auth-wz-panel {
  animation: wzSlideIn 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
.auth-wz-panel[hidden] { display: none !important; }
@keyframes wzSlideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* OTP inline reveal */
.auth-reg-otp-section {
  animation: otpReveal 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
.auth-reg-otp-section[hidden] { display: none !important; }
@keyframes otpReveal {
  from { opacity: 0; transform: translateY(-10px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 400px; }
}

/* Success State */
.auth-success-icon {
  text-align: center; margin-bottom: 16px;
}
.auth-success-icon i {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 4px 16px rgba(34,197,94,0.3));
}
.auth-success-info {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: 14px;
  background: var(--auth-input-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--auth-border, rgba(255,255,255,0.06));
  margin-bottom: 20px;
}
.auth-success-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; color: var(--auth-muted, rgba(148,163,184,0.6));
}
.auth-success-row i { font-size: 0.95rem; color: var(--accent, #C9A84C); flex-shrink: 0; }

@media (max-width: 480px) {
  .auth-success-icon i { font-size: 2.8rem; }
  .auth-success-info { padding: 12px; }
  .auth-success-row { font-size: 0.72rem; }
}
