:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #173247; background: #edf3f5; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #edf3f5; border-top: 12px solid #103a5c; }
.login-shell { min-height: calc(100vh - 12px); display: grid; place-items: center; padding: 24px; }
.login-panel { width: min(100%, 450px); padding: 32px; border: 1px solid #cad6dc; border-radius: 8px; background: #fff; box-shadow: 0 18px 55px rgba(18, 52, 73, .14); }
.brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 6px; background: #087fac; color: #fff; font-weight: 800; }
.eyebrow { color: #087fac; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
h1 { margin: 4px 0 0; font-size: 27px; letter-spacing: 0; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 23px; border: 1px solid #9eb0bb; border-radius: 6px; overflow: hidden; }
.mode-switch button { min-height: 42px; margin: 0; border: 0; border-radius: 0; background: #fff; color: #486170; font-weight: 750; }
.mode-switch button + button { border-left: 1px solid #9eb0bb; }
.mode-switch button.active { background: #e5f5fb; color: #075f83; box-shadow: inset 0 -3px #087fac; }
form { display: grid; gap: 16px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 7px; color: #314e60; font-size: 13px; font-weight: 700; }
input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #9eb0bb; border-radius: 6px; background: #fff; color: #173247; font: inherit; letter-spacing: 0; }
input:focus { outline: 3px solid rgba(8, 127, 172, .18); border-color: #087fac; }
button.primary { min-height: 44px; margin-top: 3px; border: 0; border-radius: 6px; background: #087fac; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
button.primary:hover { background: #066f97; }
.text-button { min-height: 38px; padding: 6px; border: 0; background: transparent; color: #087fac; font: inherit; font-weight: 750; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
button:disabled { opacity: .55; cursor: default; }
.password-note { margin: -6px 0 0; color: #637680; font-size: 12px; line-height: 1.45; }
#formMessage { min-height: 21px; margin: 18px 0 0; color: #526974; font-size: 13px; line-height: 1.45; }
#formMessage.error { color: #a62c24; }
#formMessage.success { padding: 10px 12px; border-left: 4px solid #2a9651; background: #edf8f1; color: #1d6537; }
.verify-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; margin-top: 15px; padding: 8px 15px; border-radius: 6px; background: #087fac; color: #fff; text-decoration: none; font-weight: 750; }
.login-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; margin-top: 15px; padding: 8px 15px; border-radius: 6px; background: #087fac; color: #fff; text-decoration: none; font-weight: 750; }
@media (max-width: 520px) { .login-shell { align-items: start; padding: max(26px, env(safe-area-inset-top)) 14px 24px; } .login-panel { padding: 25px 19px; box-shadow: none; } .field-grid { grid-template-columns: 1fr; } }
