@layer pages {
/* Authentication:a quiet split layout on desktop, a focused form on phones. */
.auth-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 44%) minmax(0, 1fr);
  background: var(--bg);
  color: var(--text-1);
  font-family: Inter, 'Noto Sans Bengali', system-ui, sans-serif;
}
.auth-brand {
  background: var(--brand);
  color: var(--on-brand);
  display: flex;
  align-items: center;
  padding: clamp(32px, 5vw, 80px);
  position: relative;
}
.ab-glow { display: none; }
.ab-inner { width: 100%; max-width: 430px; margin: auto; }
.auth-brand .ab-logo {
  width: 52px; height: 52px; display: grid; place-items: center;
  margin: 0 0 52px; border-radius: 12px; background: var(--bg-secondary);
  color: var(--text-1) !important; font-size: 28px; font-weight: 700;
  box-shadow: none; border: 0;
}
.ab-title { color: var(--on-brand); font-size: clamp(34px, 3.3vw, 48px); line-height: 1.12; letter-spacing: -.04em; margin: 0 0 22px; font-weight: 650; }
.ab-title span { font-weight: 450; color: var(--brand-muted); }
.ab-tag { font-size: 16px; line-height: 1.7; color: var(--brand-muted); margin: 0 0 40px; max-width: 360px; }
.ab-points { display: grid; gap: 18px; padding: 0; margin: 0 0 54px; list-style: none; }
.ab-points li { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.6; color: var(--brand-muted); }
.ab-check { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 11px; color: var(--brand-muted); }
.ab-foot { padding-top: 22px; border-top: 1px solid var(--border-strong); color: var(--brand-muted); font-size: 12px; line-height: 1.7; margin: 0; }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 52px 36px; gap: 24px; min-width: 0; }
.auth-card { width: min(440px, 100%); padding: 32px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); box-shadow: 0 6px 22px #183e3505; position: relative; }
.auth-card::before { display: none; }
.auth-welcome { margin-bottom: 26px; }
.auth-welcome h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.035em; color: var(--text-1); }
.auth-welcome p { font-size: 13px; line-height: 1.65; color: var(--text-2); margin: 0; }
.auth-tabs { display: flex; padding: 4px; gap: 4px; background: var(--bg-secondary); border: 1px solid var(--border-strong); border-radius: 10px; margin-bottom: 24px; }
.auth-tab { flex: 1; min-height: 44px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font: 600 13px Inter, 'Noto Sans Bengali', system-ui, sans-serif; cursor: pointer; }
.auth-tab.active { color: var(--text-1); background: var(--surface); box-shadow: 0 1px 4px #183e3510; }
.auth-error, .auth-info { padding: 13px 14px; font-size: 13px; line-height: 1.65; border-radius: 10px; border: 1px solid; margin-bottom: 18px; overflow-wrap: anywhere; }
.auth-error { color: var(--red); background: var(--amber-bg); border-color: var(--border-strong); }
.auth-info { color: var(--text-1); background: var(--bg-secondary); border-color: var(--border-strong); }
.auth-error[hidden], .auth-info[hidden], .auth-form[hidden] { display: none; }
.auth-form { display: grid; gap: 18px; }
.a-field { display: grid; gap: 8px; min-width: 0; }
.a-field > span { font-size: 12px; font-weight: 600; color: var(--text-1); }
.a-field input, .a-room-row input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; color: var(--text-1); background: var(--bg-input); border: 1px solid var(--border-strong); border-radius: 9px; font: 400 15px Inter, 'Noto Sans Bengali', system-ui, sans-serif; transition: border-color .15s ease, box-shadow .15s ease; box-shadow: none; }
.a-field input:focus, .a-room-row input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.a-field input::placeholder, .a-room-row input::placeholder { color: var(--text-3); }
.a-pass-wrap { position: relative; display: block; }
.a-pass-wrap input { padding-right: 52px; }
.a-eye { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; border-radius: 8px; cursor: pointer; transition: all var(--transition); }
.a-eye:hover { background: var(--bg-secondary); color: var(--text-1); }
.a-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.a-check-row { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); min-height: 44px; cursor: pointer; }
.a-check-row input { accent-color: var(--accent); width: 17px; height: 17px; }
.a-link { min-height: 44px; border: 0; background: none; color: var(--accent-ink); padding: 4px 0; font: 600 12px Inter, 'Noto Sans Bengali', system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.a-link:hover { text-decoration: underline; color: var(--accent-hover); }
.a-back { justify-self: start; }
.auth-panel .a-submit, .a-room-row .login-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; width: 100%; padding: 12px 18px; border: 1px solid var(--btn-brand-border); border-radius: 9px; background: var(--btn-brand-bg); color: var(--btn-brand-text); font: 600 14px Inter, 'Noto Sans Bengali', system-ui, sans-serif; box-shadow: none; cursor: pointer; text-decoration: none; transition: all var(--transition); }
.auth-panel .a-submit:hover, .a-room-row .login-btn:hover { background: var(--btn-brand-hover); border-color: var(--btn-brand-hover); transform: translateY(-1px); box-shadow: var(--control-shadow); }
.auth-panel .a-submit:active, .a-room-row .login-btn:active { background: var(--btn-brand-active); transform: translateY(1px) scale(0.985); }
.a-submit:disabled { opacity: .55; cursor: wait; transform: none !important; }
.a-alt { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 18px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text-1); font: 600 13px Inter, 'Noto Sans Bengali', system-ui, sans-serif; cursor: pointer; transition: all var(--transition); }
.a-alt:hover { background: var(--bg-secondary); border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--control-shadow); }
.a-alt:active { transform: translateY(1px) scale(0.985); }
.a-divider { display: flex; align-items: center; gap: 14px; color: var(--text-2); font-size: 12px; margin: 4px 0; }
.a-divider::before, .a-divider::after { content: ''; flex: 1; height: 1px; background: var(--bg-secondary); }
.a-strength { height: 4px; background: var(--bg-secondary); border-radius: 2px; overflow: hidden; }
.a-strength-bar { width: 0; height: 100%; border-radius: 2px; transition: width .15s; }
.a-strength-label, .a-fineprint { color: var(--text-2); font-size: 12px; line-height: 1.65; margin: 0; }
.a-recaptcha { display: flex; justify-content: center; }
.a-recaptcha:empty { display: none; }
.a-verify-title { margin: 0 0 10px; font-size: 25px; letter-spacing: -.035em; font-weight: 650; color: var(--text-1); }
.auth-legal { max-width: 420px; margin: 0; text-align: center; color: var(--text-2); font-size: 11px; line-height: 1.7; }
.a-room-row { display: flex; gap: 10px; }
.a-room-row .login-btn { width: auto; }
#otpCode { text-align: center; letter-spacing: .35em; font-size: 23px; font-variant-numeric: tabular-nums; }
@media (max-width:760px) {
  .auth-shell { display: block; }
  .auth-brand { padding: 28px 24px 26px; }
  .ab-inner { max-width: 440px; }
  .auth-brand .ab-logo { width: 38px; height: 38px; margin-bottom: 22px; font-size: 22px; border-radius: 9px; }
  .ab-title { font-size: 30px; line-height: 1.2; margin-bottom: 10px; }
  .ab-title br { display: none; }
  .ab-title span { display: block; font-size: 19px; margin-top: 5px; }
  .ab-tag { max-width: 360px; font-size: 13px; margin: 0; }
  .ab-points, .ab-foot { display: none; }
  .auth-panel { padding: 24px 18px 40px; gap: 20px; }
  .auth-card { padding: 24px; }
  .auth-welcome { margin-bottom: 22px; }
  .auth-welcome h2 { font-size: 23px; }
  .a-field input, .a-room-row input { font-size: 16px; }
}
@media (max-width:380px) {
  .auth-panel { padding: 20px 12px 36px; }
  .auth-card { padding: 22px 18px; }
  .auth-tabs { gap: 0; }
  .a-row { gap: 4px; }
}

}
