:root { color-scheme: light; --ink: #152033; --muted: #687386; --brand: #147987; --brand-dark: #0e6572; }
* { box-sizing: border-box; }
html { min-width: 320px; max-width: 100%; overflow-x: hidden; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #f3f6f9; font-family: Sarabun, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; overflow-x: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }

.auth-page, .auth-layout { min-height: 100vh; }
.auth-layout { display: grid; grid-template-columns: minmax(360px, .88fr) minmax(520px, 1.12fr); }
.auth-welcome { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; gap: 44px; padding: clamp(34px, 5vw, 68px); overflow: hidden; color: #fff; background: linear-gradient(145deg, #10213f 0%, #123456 64%, #0c6876 140%); }
.auth-welcome::before, .auth-welcome::after { position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; pointer-events: none; }
.auth-welcome::before { right: -180px; bottom: -120px; width: 430px; height: 430px; }
.auth-welcome::after { right: -80px; bottom: -20px; width: 230px; height: 230px; background: rgba(20,121,135,.16); }
.auth-brand-lockup, .auth-mobile-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.auth-brand-lockup { width: fit-content; border-radius: 10px; }
.auth-brand-lockup:focus-visible, .auth-mobile-brand:focus-visible { outline: 3px solid rgba(127,215,220,.7); outline-offset: 6px; }
.auth-brand-mark { width: 58px; height: 44px; }
.auth-brand-mark img, .auth-mobile-brand img { width: 100%; height: 100%; object-fit: contain; }
.auth-brand-copy, .auth-brand-lockup > div:last-child { display: grid; gap: 3px; }
.auth-brand-copy strong, .auth-brand-lockup > div:last-child strong { color: #fff; font-size: 20px; line-height: 1; }
.auth-brand-copy strong span, .auth-brand-lockup > div:last-child strong span { color: #f5c44b; }
.auth-brand-copy small, .auth-brand-lockup > div:last-child small { color: rgba(255,255,255,.64); font-size: 11px; font-weight: 700; }
.auth-welcome-copy { position: relative; z-index: 1; max-width: 520px; }
.auth-kicker, .eyebrow { margin: 0; font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.auth-kicker { margin-bottom: 12px; color: #f5c44b; font-size: 12px; letter-spacing: .1em; }
.auth-welcome-copy h1 { max-width: 480px; margin: 0; color: #fff; font-size: clamp(38px, 4vw, 60px); line-height: 1.02; letter-spacing: -.035em; }
.auth-welcome-copy > p:not(.auth-kicker) { max-width: 480px; margin: 18px 0 0; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.6; }
.auth-trust-list { display: grid; gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.auth-trust-list li { display: grid; grid-template-columns: 38px 1fr; align-items: start; gap: 12px; }
.auth-trust-list li > span { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(127,215,220,.38); border-radius: 10px; color: #7fd7dc; background: rgba(255,255,255,.05); font-size: 11px; font-weight: 900; }
.auth-trust-list li div { display: grid; gap: 3px; }
.auth-trust-list b { color: #fff; font-size: 14px; }
.auth-trust-list small { color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.45; }
.auth-welcome-footer { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.45); font-size: 11px; }

.auth-panel { min-width: 0; min-height: 100vh; display: grid; place-items: center; padding: 40px clamp(28px, 7vw, 110px); }
.auth-panel-inner { width: min(470px, 100%); }
.auth-mobile-brand { display: none; margin-bottom: 32px; color: #10213f; }
.auth-mobile-brand img { width: 42px; height: 32px; }
.auth-mobile-brand strong { font-size: 18px; }
.auth-card { width: 100%; display: grid; gap: 22px; }
.auth-panel .two-column-form { display: grid; gap: 17px; }
.auth-form-header { position: relative; }
.auth-form-header .eyebrow { margin-bottom: 8px; color: var(--brand); }
.auth-form-header h1 { margin: 0; color: #10213f; font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -.025em; }
.auth-form-header p:last-child { margin: 9px 0 0; color: #6c7889; font-size: 14px; line-height: 1.5; }
.field { display: grid; gap: 7px; }
.field label { color: #36465d; font-size: 12px; font-weight: 800; }
.field input { width: 100%; min-width: 0; min-height: 50px; padding: 0 14px; border: 1px solid #cbd6e2; border-radius: 10px; color: var(--ink); background: #fff; outline: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:hover { border-color: #9eafc1; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(20,121,135,.1); }
.auth-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-field-actions { display: inline-flex; align-items: center; gap: 8px; color: #a8b3c0; white-space: nowrap; }
.auth-field-actions a, .auth-field-actions button, .text-action { min-height: 0; padding: 0; border: 0; color: var(--brand); background: transparent; font-size: 12px; font-weight: 800; text-decoration: none; }
.auth-field-actions a:hover, .auth-field-actions button:hover, .text-action:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.primary-action, .secondary-action { width: 100%; min-height: 50px; padding: 8px 12px; border-radius: 10px; font-weight: 800; }
.primary-action { border: 1px solid transparent; color: #fff; background: var(--brand); box-shadow: 0 8px 20px rgba(20,121,135,.18); }
.primary-action:hover, .primary-action:focus-visible { background: var(--brand-dark); transform: translateY(-1px); }
.secondary-action { border: 1px solid #b9c8d6; color: #263a52; background: #fff; }
.text-action { justify-self: center; font-size: 13px; }
.auth-security-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -6px 0 0; color: #7a8695; font-size: 11px; }
.auth-security-note span { width: 8px; height: 8px; border: 2px solid #42a078; border-radius: 50%; }
.login-note { min-height: 18px; margin: -10px 0 0; color: #a33b3b; font-size: 12px; text-align: center; }
.login-note.success { color: #267d5b; }
.auth-step-icon { display: grid; width: 42px; height: 42px; margin-bottom: 18px; place-items: center; border-radius: 12px; color: var(--brand); background: #e5f3f4; font-size: 18px; font-weight: 900; }
.auth-step-icon.success { color: #267d5b; background: #e6f4ed; }
#otp-code { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: .35em; }
.reset-destination { margin: -8px 0 0; padding: 12px 14px; overflow-wrap: anywhere; border: 1px solid #c9dde1; border-radius: 10px; color: #10213f; background: #eef7f8; font-size: 14px; font-weight: 800; text-align: center; }
.reset-checklist { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.reset-checklist li { display: grid; grid-template-columns: 30px 1fr; align-items: start; gap: 11px; }
.reset-checklist li > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--brand); background: #e5f3f4; font-size: 11px; font-weight: 900; }
.reset-checklist div { display: grid; gap: 3px; }
.reset-checklist strong { color: #273950; font-size: 13px; }
.reset-checklist small, .reset-privacy-note { color: #718094; font-size: 11px; line-height: 1.45; }
.reset-privacy-note { margin: -6px 0 0; padding-top: 14px; border-top: 1px solid #dce5ec; text-align: center; }
.auth-panel-footer { margin: 34px 0 0; color: #8a95a3; font-size: 11px; text-align: center; }

@media (max-width: 900px) { .auth-layout { grid-template-columns: minmax(290px, .72fr) minmax(430px, 1fr); } .auth-welcome { padding: 34px; } .auth-welcome-copy h1 { font-size: 38px; } .auth-trust-list small { display: none; } }
@media (max-width: 720px) { .auth-layout { display: block; } .auth-welcome { display: none; } .auth-panel { min-height: 100vh; padding: 32px 22px; } .auth-mobile-brand { display: flex; } .auth-panel-footer { margin-top: 28px; } }
