/* ---------- shared auth layout ---------- */
.auth-body { background: linear-gradient(180deg, #063B78 0%, #0652C4 42%, #F5F8FC 42%); min-height: 100vh; }
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); outline: none; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 26px; padding: 28px 22px; box-shadow: 0 24px 60px rgba(6,59,120,.28); display: flex; flex-direction: column; gap: 16px; }
.auth-head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.auth-head .tagline { color: var(--muted); font-size: .9rem; }
.auth-foot { max-width: 440px; text-align: center; font-size: .75rem; color: #6B7C93; }
.auth-register .auth-shell { justify-content: flex-start; }

/* ---------- dark blue screens: login, forgot password, verify code, reset ---------- */
.auth-dark { background: radial-gradient(120% 70% at 50% 0%, #0B4BA8 0%, #063B78 46%, #031F45 100%) fixed; color: #fff; }
.auth-dark .auth-card { background: transparent; box-shadow: none; padding: 8px 4px; max-width: 380px; gap: 14px; }
.auth-dark .h1, .auth-dark .h2, .auth-dark h1, .auth-dark h2 { color: #fff; }
.auth-dark .muted, .auth-dark .help { color: rgba(255,255,255,.74); }
.auth-dark a:not(.btn) { color: #fff; }
.auth-dark a:not(.btn):hover { text-decoration: underline; }
.auth-dark .label { color: rgba(255,255,255,.92); }
.auth-dark .input { background: #fff; color: #152238; border-color: transparent; border-radius: 10px; min-height: 50px; }
.auth-dark .input::placeholder { color: #8895A7; }
.auth-dark .input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.auth-dark .pw-toggle { color: #718096; }
.auth-dark .btn-primary { background: #1A73F0; box-shadow: none; border-radius: 10px; }
.auth-dark .btn-primary:hover { background: #2A7FF5; }
.auth-dark .btn-secondary { background: rgba(255,255,255,.14); border-color: transparent; color: #fff; border-radius: 10px; }
.auth-dark .btn-secondary:hover { background: rgba(255,255,255,.22); }
.auth-dark .error-text { color: #FFC2C2; }
.auth-dark .logo, .auth-dark .logo-text { color: #fff; }
.auth-dark .auth-foot { color: rgba(255,255,255,.62); }
.auth-dark .empty, .auth-dark .empty p { color: rgba(255,255,255,.85); }

/* login screen: logo on top, placeholder-only fields */
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; text-align: center; }
.auth-brand .crest-mark { filter: drop-shadow(0 6px 18px rgba(0,0,0,.25)); }
.brand-name { margin: 8px 0 0; font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.brand-tag { margin: 0; color: rgba(255,255,255,.82); font-size: 1rem; }
.auth-login .label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth-login .stack { gap: 14px; }
.auth-switch { margin-top: 18px; color: rgba(255,255,255,.8); }

/* ---------- sign-up: clean white page ---------- */
.auth-register { background: #fff; }
.auth-register .auth-card { box-shadow: none; background: transparent; padding: 8px 4px 24px; }
.auth-register .h1 { text-align: left; font-size: 1.7rem; }
.auth-register .auth-card > p.muted { text-align: left; margin-top: -8px; }
.auth-register .input, .auth-register select.input { background: #F5F8FC; border-color: #DDE6F2; border-radius: 10px; }
.auth-register .btn-primary { border-radius: 10px; box-shadow: none; }
.auth-register .auth-head { align-items: flex-start; }

@media (min-width: 640px) {
  .auth-card { padding: 36px 36px; }
  .auth-register { background: #F5F8FC; }
  .auth-register .auth-card { max-width: 520px; background: #fff; box-shadow: 0 24px 60px rgba(6,59,120,.14); padding: 36px; }
  .auth-dark .auth-card { padding: 8px 4px; }
}

.auth-body .btn { text-align: center; justify-content: center; }
.auth-dark .logo { margin-bottom: 4px; }

/* ---------- PIN screens ---------- */
.pin-lock { align-self: center; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; }
.pin-input { text-align: center; font-size: 1.6rem; font-weight: 700; letter-spacing: .6em; padding-left: .6em; }
.pin-input::placeholder { letter-spacing: .4em; }
.pin-field { margin-top: 4px; }
.pin-field .pin-input { background: var(--surface); color: var(--text); }
