/* Auth pages — 1:1 parity with React /login /signup /forgot-password */
:root {
  --auth-primary: #1e6bd6;
  --auth-primary-dark: #1857b0;
  --auth-slate-50: #f8fafc;
  --auth-slate-100: #f1f5f9;
  --auth-slate-200: #e2e8f0;
  --auth-slate-300: #cbd5e1;
  --auth-slate-400: #94a3b8;
  --auth-slate-500: #64748b;
  --auth-slate-600: #475569;
  --auth-slate-700: #334155;
  --auth-slate-800: #1e293b;
  --auth-red-500: #ef4444;
  --auth-red-600: #dc2626;
  --auth-emerald-500: #10b981;
  --auth-radius: 12px;
}

.auth-body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: #f2f5fa;
  font-family: 'Sora','Noto Sans Bengali',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color: var(--auth-slate-800);
}
/* Decorative gradient blobs (matches React) */
.auth-body::before,
.auth-body::after {
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  border-radius: 999px; filter: blur(80px); opacity: .35;
}
.auth-body::before {
  width: 288px; height: 288px; top: -100px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, #1e6bd6 0%, transparent 70%);
}
.auth-body::after {
  width: 256px; height: 256px; top: 100px; right: -80px;
  background: radial-gradient(circle, #d4af37 0%, transparent 70%);
}

/* Sticky blur header */
.auth-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(242,245,250,.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: var(--auth-slate-800);
  border-bottom: 1px solid rgba(203,213,225,.5);
}
.auth-header .inner {
  max-width: 28rem; margin: 0 auto;
  height: 64px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.auth-header h1 { font-size: 18px; font-weight: 700; letter-spacing: .02em; margin: 0; color: var(--auth-slate-800); }
.auth-header a.close, .auth-header a.back, .auth-header button.back {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 999px;
  color: var(--auth-slate-700); text-decoration: none;
  transition: background .15s, color .15s;
  border: 1px solid rgba(203,213,225,.6); background: rgba(255,255,255,.7); padding: 0; cursor: pointer;
}
.auth-header a.close:hover, .auth-header a.back:hover, .auth-header button.back:hover { color: var(--auth-primary); }

.auth-main { max-width: 32rem; margin: 0 auto; padding: 40px 16px; position: relative; z-index: 1; }

.auth-brand {
  text-align: center; margin: 8px 0 24px;
  font-size: 32px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, #1e6bd6, #d4af37);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-card {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(203,213,225,.6);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 20px 40px -15px rgba(30,107,214,.15);
}
@media (min-width: 640px){ .auth-card { padding: 40px; } }

.auth-field { display: block; margin-bottom: 18px; }
.auth-field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px; font-weight: 600;
  color: var(--auth-slate-800);
}
.auth-input,
.auth-inputbox {
  display: flex; align-items: center; gap: 8px;
  width: 100%; box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--auth-slate-300);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px; color: var(--auth-slate-800);
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus,
.auth-inputbox:focus-within {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(30,107,214,.18);
}
.auth-input::placeholder { color: var(--auth-slate-400); }
.auth-inputbox input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 15px; color: var(--auth-slate-800); min-width: 0;
  font-family: inherit;
}
.auth-inputbox input::placeholder { color: var(--auth-slate-400); }
.auth-inputbox .prefix {
  display: inline-flex; align-items: center; gap: 6px;
  padding-right: 10px; margin-right: 2px;
  border-right: 1px solid var(--auth-slate-200);
  font-weight: 600; color: var(--auth-slate-800);
}
.auth-inputbox .trailing {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; color: var(--auth-slate-500);
  background: transparent; border: 0; cursor: pointer;
}
.auth-inputbox .trailing:hover { color: var(--auth-primary); }
.auth-field.has-error .auth-input,
.auth-field.has-error .auth-inputbox { border-color: var(--auth-red-500); }
.auth-error { margin-top: 6px; color: var(--auth-red-600); font-size: 12px; }
.auth-alert {
  padding: 10px 12px; border-radius: 8px;
  background: rgba(239,68,68,.08); color: var(--auth-red-600);
  border: 1px solid rgba(239,68,68,.35);
  font-size: 13px; margin-bottom: 14px;
}
.auth-alert.ok {
  background: rgba(16,185,129,.08); color: #047857;
  border-color: rgba(16,185,129,.35);
}

.auth-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; box-sizing: border-box;
  padding: 14px 20px; border-radius: 14px; border: 0;
  background: linear-gradient(135deg, #1e6bd6, #d4af37);
  color: #fff;
  font-size: 16px; font-weight: 800; letter-spacing: .01em;
  cursor: pointer; overflow: hidden;
  transition: transform .12s ease;
  box-shadow: 0 10px 30px -10px rgba(30,107,214,.55);
  font-family: inherit;
}
.auth-btn:hover:not(:disabled) { transform: scale(1.02); }
.auth-btn:active:not(:disabled) { transform: scale(.98); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-btn.ghost {
  background: transparent; color: var(--auth-primary);
  border: 1px solid var(--auth-slate-300);
  box-shadow: none;
}
.auth-btn.ghost:hover:not(:disabled) { background: var(--auth-slate-50); }

.auth-meta {
  text-align: center; margin-top: 18px;
  color: var(--auth-slate-600); font-size: 15px;
}
.auth-meta a { color: var(--auth-primary); font-weight: 700; text-decoration: none; }
.auth-meta a:hover { text-decoration: underline; }
.auth-fineprint {
  text-align: center; margin-top: 14px;
  color: var(--auth-slate-500); font-size: 13px; line-height: 1.55;
}
.auth-secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 16px; color: var(--auth-slate-500); font-size: 12px;
}
.auth-secure svg { color: var(--auth-primary); }

.auth-forgot {
  display: flex; justify-content: flex-end; margin: -6px 0 4px;
}
.auth-forgot a {
  font-size: 13px; font-weight: 600;
  color: var(--auth-primary); text-decoration: none;
}
.auth-forgot a:hover { text-decoration: underline; }
.auth-forgot-disabled {
  background: transparent; border: 0; padding: 0;
  font-size: 13px; font-weight: 600;
  color: var(--muted-foreground, #94a3b8);
  opacity: .6; cursor: not-allowed;
}


/* BD flag */
.bd-flag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 999px;
  background: #006a4e;
}
.bd-flag::after {
  content: ''; display: block;
  width: 66%; height: 66%; border-radius: 999px; background: #f42a41;
}

/* Password rules */
.pw-rules { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; }
.pw-rules li {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--auth-slate-500); padding: 3px 0;
}
.pw-rules li .dot {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--auth-slate-300); color: #fff;
  font-size: 10px; font-weight: 900; margin-top: 2px; flex: none;
}
.pw-rules li.ok { color: var(--auth-slate-700); }
.pw-rules li.ok .dot { background: var(--auth-emerald-500); }

/* Step indicator (forgot-password) */
.step-dots {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-bottom: 20px;
}
.step-dots span {
  height: 6px; border-radius: 999px; background: var(--auth-slate-200);
  width: 16px; transition: all .2s;
}
.step-dots span.active { background: var(--auth-primary); width: 32px; }

.auth-hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; margin-bottom: 22px;
}
.auth-hero-icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--auth-primary); color: #fff; margin-bottom: 14px;
  box-shadow: 0 8px 24px -8px rgba(30,107,214,.5);
}
.auth-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(30,107,214,.1); color: var(--auth-primary);
  border: 1px solid rgba(30,107,214,.25);
  font-size: 12px; font-weight: 600;
}
.auth-hero h1 {
  margin: 12px 0 4px;
  font-size: 26px; font-weight: 800; letter-spacing: -.02em;
  color: var(--auth-slate-800);
}
.auth-hero p { margin: 4px 0 0; color: var(--auth-slate-500); font-size: 14px; }

/* OTP inputs */
.otp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 6px; }
.otp-grid input {
  width: 100%; height: 52px;
  text-align: center; font-size: 20px; font-weight: 700;
  border: 1px solid var(--auth-slate-300); border-radius: 10px;
  background: #fff; color: var(--auth-slate-800);
  font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.otp-grid input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(30,107,214,.18);
}

/* Auth footer */
.auth-foot{margin-top:32px;padding:20px 16px;background:var(--card);border-top:1px solid var(--border)}
.auth-foot-inner{max-width:440px;margin:0 auto;text-align:center}
.auth-foot-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:12px}
.auth-foot-links a{display:inline-flex;align-items:center;padding:6px 12px;border-radius:6px;color:#fff;font-size:12px;font-weight:700;text-decoration:none}
.auth-foot-copy{font-size:11px;color:var(--muted-foreground);margin-bottom:4px}
.auth-foot-note{font-size:10px;color:var(--muted-foreground);font-weight:600}
