/* ═══════════════════════════════════════════════════════════════════════════
   AiGenAgri — Auth Pages  (login · register · forgot · reset)
   Enterprise-grade design system — v2.0
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Keyframes ──────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  from { background-position: -300px 0; }
  to   { background-position: 300px 0; }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.15); }
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(18px, -22px) scale(1.06); }
  66%       { transform: translate(-12px, 14px) scale(0.96); }
}
@keyframes orbDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-20px, 18px) scale(1.04); }
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
html, body.auth-page {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}
body.auth-page {
  display: flex;
  align-items: stretch;
  background: #071a0e;
}
.auth-shell {
  display: flex;
  width: 100vw; height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════════════════
   LEFT PANEL — Brand
   ════════════════════════════════════════════════════════════════════════════ */
.auth-panel--brand {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 46%;
  height: 100vh;
  padding: 44px 52px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(22,163,74,.32) 0%, transparent 52%),
    radial-gradient(ellipse at 80% 12%, rgba(14,165,233,.18) 0%, transparent 46%),
    linear-gradient(160deg, #061209 0%, #071a0e 35%, #0a2413 70%, #0d3019 100%);
  animation: fadeIn .45s ease both;
}

/* Subtle grid mesh */
.auth-panel--brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

/* Top accent bar */
.auth-panel--brand::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4ade80 40%, #0ea5e9 70%, transparent);
  z-index: 3;
}

/* ── Abstract glow orbs (replaces floating emojis) ─────────────────────────── */
.deco-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.deco-orb--1 {
  width: 360px; height: 360px;
  top: -120px; right: -80px;
  background: radial-gradient(circle at center, rgba(74,222,128,.22) 0%, rgba(22,163,74,.08) 50%, transparent 70%);
  filter: blur(48px);
  animation: orbDrift 18s ease-in-out infinite;
}
.deco-orb--2 {
  width: 280px; height: 280px;
  bottom: 0; left: -60px;
  background: radial-gradient(circle at center, rgba(14,165,233,.18) 0%, rgba(14,165,233,.05) 50%, transparent 70%);
  filter: blur(56px);
  animation: orbDriftB 22s ease-in-out infinite;
}
.deco-orb--3 {
  width: 180px; height: 180px;
  top: 45%; right: 12%;
  background: radial-gradient(circle at center, rgba(74,222,128,.16) 0%, transparent 70%);
  filter: blur(36px);
  animation: orbDrift 14s ease-in-out infinite reverse;
}

/* ── Brand logo ─────────────────────────────────────────────────────────────── */
.brand-logo {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  animation: fadeUp .5s .05s ease both;
}
.brand-logo__icon {
  width: 88px; height: 88px;
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.14) inset,
    0 4px 24px rgba(0,0,0,.45),
    0 1px 4px rgba(0,0,0,.3);
}
.brand-logo__icon img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.16);
}
.brand-logo__text {
  display: inline-flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
}
.brand-logo__aigen { color: #ffffff; }
.brand-logo__agri {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-logo__dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  margin-left: 2px;
  margin-bottom: 20px;
  flex-shrink: 0;
  animation: pulseGlow 2.4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(74,222,128,.7);
}

/* ── Panel content ──────────────────────────────────────────────────────────── */
.auth-panel__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 8px 0;
}

/* Badge */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.88);
  font-size: .75rem;
  font-weight: 600;
  padding: 5px 14px 5px 8px;
  border-radius: 100px;
  margin-bottom: 28px;
  width: fit-content;
  letter-spacing: .35px;
  text-transform: uppercase;
  animation: fadeUp .5s .15s ease both;
}
.brand-badge__dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulseGlow 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(74,222,128,.8);
}

/* Headline */
.brand-headline {
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 360px;
  letter-spacing: -.5px;
  animation: fadeUp .5s .25s ease both;
}
.brand-headline--accent {
  background: linear-gradient(100deg, #4ade80 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Highlight list */
.auth-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 44px;
}
.auth-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  animation: fadeUp .5s ease both;
}
.auth-highlights li:nth-child(1) { animation-delay: .35s; }
.auth-highlights li:nth-child(2) { animation-delay: .47s; }
.auth-highlights li:nth-child(3) { animation-delay: .59s; }

.auth-highlight__icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  flex-shrink: 0;
  color: #4ade80;
  transition: background .2s, transform .2s;
}
.auth-highlight__icon svg {
  width: 18px; height: 18px;
  stroke-width: 1.6;
}
.auth-highlights li:hover .auth-highlight__icon {
  background: rgba(74,222,128,.12);
  border-color: rgba(74,222,128,.3);
  transform: scale(1.08);
}
.auth-highlights li > div {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 2px;
}
.auth-highlights li strong {
  font-size: .88rem;
  color: rgba(255,255,255,.95);
  font-weight: 600;
  line-height: 1.3;
}
.auth-highlights li span {
  font-size: .76rem;
  color: rgba(255,255,255,.44);
  line-height: 1.4;
}
.auth-highlights em {
  font-style: normal;
  color: #4ade80;
}

/* Stats strip */
.auth-stats {
  display: flex;
  animation: fadeUp .5s .72s ease both;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  width: fit-content;
}
.auth-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 24px;
  position: relative;
}
.auth-stat + .auth-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: rgba(255,255,255,.1);
}
.auth-stat__num {
  font-size: 1.45rem;
  font-weight: 900;
  color: #4ade80;
  letter-spacing: -1px;
  line-height: 1;
}
.auth-stat__lbl {
  font-size: .65rem;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: 4px;
}

/* Footer */
.auth-panel__footer {
  font-size: .72rem;
  color: rgba(255,255,255,.22);
  position: relative;
  z-index: 2;
  margin-top: 28px;
  letter-spacing: .1px;
}

/* ════════════════════════════════════════════════════════════════════════════
   RIGHT PANEL — Form
   ════════════════════════════════════════════════════════════════════════════ */
.auth-form-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 24px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  background:
    radial-gradient(ellipse at 75% 8%,  rgba(22,163,74,.06) 0%, transparent 48%),
    radial-gradient(ellipse at 15% 92%, rgba(14,165,233,.04) 0%, transparent 44%),
    #f8fafc;
}

/* Subtle dot grid on right panel */
.auth-form-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(15,23,42,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ── Form card container ────────────────────────────────────────────────────── */
.auth-form-card {
  width: 100%;
  /* Was 432px — too narrow for the longer registration form with the new
     structured address fields (country/state/district/city/street/PIN).
     500px gives the two-column rows enough room to breathe without making
     the login form (only 3 fields) feel sparse — login still uses the same
     card and the inputs just stretch a touch. */
  max-width: 500px;
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin-bottom: auto;
  animation: fadeUp .5s .06s ease both;
}

/* ── App brand above card ───────────────────────────────────────────────────── */
.form-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.form-brand__icon {
  width: 72px; height: 72px;
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(22,163,74,.18),
    0 2px 12px rgba(22,163,74,.12),
    0 1px 3px rgba(15,23,42,.08);
}
.form-brand__icon img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.16);
}
.form-brand__wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}
.form-brand__aigen { color: #0f172a; }
.form-brand__agri {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.form-brand__dot {
  width: 6px; height: 6px;
  background: #16a34a;
  border-radius: 50%;
  margin-left: 2px;
  margin-bottom: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(22,163,74,.6);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

/* ── White form card ────────────────────────────────────────────────────────── */
.auth-form-inner {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 36px 28px;
  border: 1px solid rgba(15,23,42,.07);
  box-shadow:
    0 1px 2px rgba(15,23,42,.04),
    0 4px 16px rgba(15,23,42,.06),
    0 20px 48px rgba(15,23,42,.07),
    0 0 0 1px rgba(255,255,255,.9) inset;
}

.auth-form-header { margin-bottom: 26px; }
.auth-form-header h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.55px;
  color: #0f172a;
  margin-bottom: 5px;
  line-height: 1.2;
}
.auth-form-header p {
  color: #64748b;
  font-size: .88rem;
  line-height: 1.5;
}

/* ── Form fields ────────────────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: .05px;
}
.label-link {
  font-weight: 500;
  color: #16a34a;
  text-decoration: none;
  font-size: .78rem;
  transition: color .15s;
}
.label-link:hover { color: #0d3019; text-decoration: underline; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  background: #f8fafc;
  transition: border-color .18s, box-shadow .18s, background .18s;
  color: #0f172a;
  line-height: 1.5;
}
/* Native select wants explicit appearance reset to inherit our styling. */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.11);
}
.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.09);
}

.input-wrap { position: relative; }
.input-wrap input { padding-right: 44px; }
.toggle-pw {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #94a3b8; display: flex; align-items: center; padding: 4px;
  transition: color .15s;
}
.toggle-pw:hover { color: #0f172a; }

/* Password strength */
.pw-strength { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.pw-strength__bar { flex: 1; height: 3px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.pw-strength__fill { height: 100%; width: 0%; border-radius: 4px; transition: width .3s, background .3s; }
.pw-strength__label { font-size: .7rem; color: #94a3b8; min-width: 44px; }

.form-row { display: flex; align-items: center; gap: 10px; }
.form-row--2col { gap: 12px; }
.form-row--2col .form-group { flex: 1; }

.checkbox-label {
  display: flex; align-items: center; gap: 9px;
  font-size: .84rem; cursor: pointer;
  color: #475569; user-select: none;
}
.checkbox-label input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: #16a34a; cursor: pointer; flex-shrink: 0;
}
.checkbox-label a { color: #16a34a; text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

.field-error { font-size: .74rem; color: #ef4444; min-height: 14px; }

.form-alert {
  padding: 10px 14px; border-radius: 9px; font-size: .84rem; line-height: 1.5;
}
.form-alert--error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.form-alert--success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.hidden { display: none !important; }

/* ── Submit button ───────────────────────────────────────────────────────────── */
.btn--full { width: 100%; justify-content: center; display: flex; }
.btn--primary {
  padding: 13px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #16a34a 0%, #0d3019 100%);
  color: #ffffff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .1px;
  border: none;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.4,0,.2,1), box-shadow .18s, filter .18s;
  box-shadow: 0 4px 14px rgba(22,163,74,.36), 0 1px 3px rgba(22,163,74,.18);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14) 50%, transparent);
  background-size: 280px 100%;
  opacity: 0; transition: opacity .2s;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(22,163,74,.45), 0 2px 6px rgba(22,163,74,.18);
  filter: brightness(1.04);
}
.btn--primary:hover::after { opacity: 1; animation: shimmer .65s linear; }
.btn--primary:active  { transform: translateY(0); }
.btn--primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

.btn--ghost {
  padding: 10px 20px;
  border-radius: 10px;
  background: transparent;
  color: #16a34a;
  font-size: .88rem;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn--ghost:hover { border-color: #16a34a; background: rgba(22,163,74,.04); }
.btn--sm { padding: 8px 16px; font-size: .82rem; }

/* ── Divider ─────────────────────────────────────────────────────────────────── */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 4px 0 18px;
  color: #94a3b8;
  font-size: .76rem;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: #e2e8f0;
}
.auth-divider span {
  position: relative;
  background: #ffffff;
  padding: 0 12px;
}

/* ── Switch link ─────────────────────────────────────────────────────────────── */
.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: .84rem;
  color: #64748b;
}
.auth-switch a {
  color: #16a34a; text-decoration: none;
  font-weight: 700; transition: color .15s;
}
.auth-switch a:hover { color: #0d3019; text-decoration: underline; }

/* ── Mobile build download tiles (login page) ──────────────────────────────── */
.app-downloads { margin-top: 16px; padding: 12px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; }
.app-downloads.hidden { display: none; }
.app-downloads__title { font-size: .68rem; font-weight: 800; color: #64748b; letter-spacing: .5px; text-transform: uppercase; text-align: center; margin-bottom: 8px; }
/* Force horizontal pair — each tile takes equal width via flex:1 and we
   forbid wrapping. Both tiles fit the form-card width even on narrow
   viewports because we shrink the icon + paddings below. */
.app-downloads__row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
/* Google Play Store badge inside the login app-downloads card. Lift on
   hover matches the sideload tiles below. */
.app-downloads .play-store-badge { margin: 0; }
.app-downloads .play-store-badge img { display: block; height: 48px; width: auto; }
.app-downloads .play-store-badge:hover { transform: translateY(-1px); }
.app-tile {
  flex: 1 1 0;
  min-width: 0;                /* let flex shrink past child intrinsic sizes */
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.app-tile:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(15,23,42,.08); border-color: #cbd5e1; }
.app-tile__icon { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-tile__icon svg { width: 18px; height: 18px; }
.app-tile__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.app-tile__name { font-size: .82rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.app-tile__meta { font-size: .68rem; color: #64748b; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-tile__arrow { color: #64748b; flex-shrink: 0; }
.app-tile__arrow svg { width: 16px; height: 16px; }
.app-tile:hover .app-tile__arrow { color: #16a34a; }

/* ── Trust indicator (replaces produce strip) ───────────────────────────────── */
.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: .72rem;
  color: #94a3b8;
  letter-spacing: .1px;
}
.auth-trust svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  color: #94a3b8;
}
.auth-trust__sep {
  width: 3px; height: 3px;
  background: #cbd5e1;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── OTP step ────────────────────────────────────────────────────────────────── */
.otp-step { padding: 8px 0; }
.otp-step__info { font-size: .88rem; color: #64748b; margin-bottom: 16px; line-height: 1.5; }
.otp-step__info strong { color: #0f172a; }
#otpInput {
  letter-spacing: 8px; font-size: 1.5rem;
  text-align: center; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── Other field helpers ─────────────────────────────────────────────────────── */
.field-optional { font-size: .74rem; font-weight: 400; color: #94a3b8; margin-left: 4px; }
.input-wrap--prefix { display: flex; gap: 8px; width: 100%; }
/* Higher specificity than .form-group select so width:112px wins */
.input-wrap--prefix select.input-prefix { width: 112px; flex-shrink: 0; }
.input-wrap--prefix input { flex: 1; min-width: 0; width: auto; }
.input-prefix {
  width: 112px; flex-shrink: 0;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 10px;
  font-size: .87rem;
  font-family: inherit;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  outline: none;
  transition: border-color .18s;
}
.input-prefix:focus { border-color: #16a34a; }
#address { width: 100%; resize: vertical; min-height: 56px; }
.required { color: #ef4444; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-panel--brand { display: none; }
  .auth-form-wrap { padding: 24px 16px; }
  .auth-form-inner { padding: 28px 22px 22px; border-radius: 16px; }
  .auth-form-header h1 { font-size: 1.5rem; }
  .form-brand { font-size: 1.4rem; }
  .form-row--2col {
    flex-direction: column;
    align-items: stretch; /* override row-level align-items:center so children fill full width */
  }
  .form-row--2col .form-group {
    width: 100%;
    flex: none; /* column direction — no need for flex growth */
  }
}
@media (max-width: 420px) {
  .auth-form-inner { padding: 22px 16px 18px; border-radius: 14px; }
  .form-brand__icon { width: 44px; height: 44px; }
}

/* ── OTP Channel Picker ────────────────────────────────────────────────────── */
.otp-channel-picker {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.otp-channel-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.otp-channel-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.otp-channel-option:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}
.otp-channel-option--selected,
.otp-channel-option:has(input:checked) {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.12), 0 2px 8px rgba(22, 163, 74, 0.08);
}
.otp-channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(22, 163, 74, 0.08);
  flex-shrink: 0;
}
.otp-channel-option:has(input:checked) .otp-channel-icon {
  background: rgba(22, 163, 74, 0.15);
}
.otp-channel-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.otp-channel-label strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}
.otp-channel-label small {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}
.otp-channel-option:has(input:checked) .otp-channel-label small {
  color: #16a34a;
}

@media (max-width: 420px) {
  .otp-channel-picker { flex-direction: column; gap: 8px; }
}

/* ── Language picker (auth pages) ──────────────────────────────────────────── */
.auth-lang-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}
.auth-lang-label {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.auth-lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.lang-chip {
  appearance: none;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 120ms ease;
  font-family: inherit;
}
.lang-chip:hover { background: #f3f4f6; border-color: #9ca3af; }
.lang-chip--active {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

/* Gender radio pills — used on the register form. Three side-by-side options
   styled like buttons; the native radio input is visually hidden but stays
   keyboard-focusable + form-submit-bound. */
.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.radio-pill {
  flex: 1 1 auto;
  min-width: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  color: #64748b;
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
}
.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-pill:hover { background: #e2e8f0; }
.radio-pill:has(input:checked) {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
}
.radio-pill:focus-within {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

/* Red asterisk after required field labels. Decorative — `aria-hidden="true"`
   in the markup so screen readers announce required-ness from the underlying
   <input required> attribute, not the visual star. */
.req-star {
  color: #dc2626;
  font-weight: 800;
  margin-left: 4px;
}

/* Read-only input — used for the locked Country field on register.html.
   Matches the visual weight of regular inputs but communicates "you can't
   change this" via reduced contrast + disabled cursor. */
.input-readonly {
  background: #f1f5f9;
  color: #475569;
  cursor: not-allowed;
  border: 1.5px solid transparent;
}
