:root {
    color-scheme: light;
    --night: #15252d;
    --night-quiet: #a9bdc1;
    --lagoon: #166d72;
    --lagoon-hover: #105b60;
    --paper: #f7f6f2;
    --surface: #fff;
    --inset: #f0f2f0;
    --ink: #193039;
    --ink-soft: #52656b;
    --ink-quiet: #708085;
    --edge: rgba(21, 37, 45, .13);
    --danger: #a53c3c;
    --danger-soft: #fff2f0;
    --success: #285f53;
    --success-soft: #eaf5ee;
    font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: var(--lagoon); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(22, 109, 114, .42); outline-offset: 3px; }

.auth-skip { position: fixed; top: -80px; left: 12px; padding: 10px 16px; background: var(--surface); z-index: 10; }
.auth-skip:focus { top: 12px; }
.auth-shell { display: grid; grid-template-columns: 42% 58%; min-height: 100svh; }

.auth-story {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    background: var(--night); color: var(--surface); padding: clamp(32px, 4vw, 64px);
}
.auth-story::before {
    content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%;
    border: 1px solid rgba(138, 211, 207, .13); left: -300px; bottom: 15%; z-index: -1;
    box-shadow: 0 0 0 88px rgba(138, 211, 207, .035), 0 0 0 180px rgba(138, 211, 207, .025);
}
.auth-story__brand { min-height: 52px; display: flex; align-items: center; gap: 12px; }
.auth-story__brand img { display: block; max-width: 120px; max-height: 52px; object-fit: contain; object-position: left center; }
.auth-brand-fallback { color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.auth-story__main { max-width: 560px; margin: 90px 0 110px; }
.auth-eyebrow, .auth-kicker { font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.auth-eyebrow { color: #9bc8c7; display: flex; align-items: center; gap: 10px; }
.auth-eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: #72d0c8; box-shadow: 0 0 0 5px rgba(114, 208, 200, .1); }
.auth-story__headline { margin: 30px 0 22px; font-size: clamp(40px, 3.9vw, 72px); font-weight: 800; line-height: 1.12; letter-spacing: -.055em; text-wrap: balance; }
.auth-story__headline em { color: #8ad3cf; font-style: normal; }
.auth-story__copy { color: var(--night-quiet); max-width: 420px; line-height: 1.75; font-size: 15px; text-wrap: pretty; }
.auth-route { position: relative; display: flex; justify-content: space-between; max-width: 460px; margin-top: 80px; gap: 8px; }
.auth-route__line { position: absolute; height: 1px; background: rgba(157, 205, 204, .26); left: 5px; right: 5px; top: 5px; }
.auth-route__stop { position: relative; display: grid; gap: 20px; min-width: 0; }
.auth-route__stop::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--night); border: 2px solid #8ad3cf; box-sizing: border-box; }
.auth-route__stop span { color: #86adaf; font-size: 10px; letter-spacing: .08em; }
.auth-route__stop strong { margin-top: -19px; color: #d8e5e4; font-size: 12px; font-weight: 600; }
.auth-story__footer { display: flex; justify-content: space-between; gap: 16px; color: #8ea7ad; font-size: 12px; }
.auth-story__footer strong { color: #e6f1ef; font-weight: 800; }

.auth-main { min-width: 0; display: flex; flex-direction: column; padding: 40px clamp(32px, 5vw, 96px) 30px; }
.auth-main__top { display: flex; justify-content: flex-end; align-items: center; min-height: 32px; }
.auth-main__secure { font-size: 12px; font-weight: 700; color: var(--ink-quiet); }
.auth-main__secure span { color: #438b77; font-size: 9px; margin-right: 6px; }
.auth-mobile-brand { display: none; }
.auth-mobile-brand__identity { display: flex; align-items: center; gap: 8px; }
.auth-main__center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0 68px; }
.auth-content { width: min(100%, 420px); }
.auth-main__footer { color: var(--ink-quiet); font-size: 11px; text-align: center; }
.auth-kicker { color: var(--lagoon); margin-bottom: 18px; }
h1 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.17; letter-spacing: -.047em; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
.auth-intro { margin: 0 0 42px; color: var(--ink-soft); line-height: 1.65; text-wrap: pretty; }
.auth-form { display: grid; gap: 22px; }
.auth-field { display: grid; gap: 8px; }
.auth-field label { font-size: 13px; color: var(--ink); font-weight: 700; }
.auth-field__label-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.auth-field__label-row a { font-size: 12px; font-weight: 700; }
.auth-field input {
    width: 100%; height: 48px; border: 1px solid var(--edge); border-radius: 9px;
    background: var(--inset); padding: 0 15px; color: var(--ink);
    transition: background-color 150ms, border-color 150ms, box-shadow 150ms;
}
.auth-field input:hover { border-color: rgba(21, 37, 45, .27); }
.auth-field input:focus { outline: none; border-color: var(--lagoon); background: var(--surface); box-shadow: 0 0 0 3px rgba(22, 109, 114, .16); }
.auth-field input::placeholder { color: #88989a; }
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 90px; }
.auth-reveal { position: absolute; right: 5px; top: 4px; min-width: 76px; height: 40px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--lagoon); font-size: 12px; font-weight: 700; cursor: pointer; }
.auth-reveal:hover { background: rgba(22, 109, 114, .08); }
.auth-field__error, .auth-field__hint { font-size: 12px; }
.auth-field__error { color: var(--danger); }
.auth-field__hint { color: var(--ink-quiet); }
.auth-field .auth-otp-input { font-size: 25px; font-weight: 700; letter-spacing: .35em; font-variant-numeric: tabular-nums; text-align: center; }
.auth-notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 28px; font-size: 13px; line-height: 1.55; }
.auth-notice--error, .auth-form-error { color: var(--danger); background: var(--danger-soft); }
.auth-notice--success { color: var(--success); background: var(--success-soft); }
.auth-form-error { padding: 12px 16px; border-radius: 8px; font-size: 13px; }
.auth-submit {
    width: 100%; min-height: 48px; display: flex; justify-content: center; align-items: center;
    gap: 16px; padding: 10px 18px; margin-top: 10px; border: 1px solid transparent; border-radius: 9px;
    color: white; background: var(--lagoon); font-size: 14px; font-weight: 800; cursor: pointer;
    transition: background-color 150ms, transform 120ms, box-shadow 150ms;
}
.auth-submit:hover { background: var(--lagoon-hover); text-decoration: none; }
.auth-submit:active { transform: scale(.98); }
.auth-submit:disabled { opacity: .74; cursor: wait; }
.auth-submit__arrow { position: absolute; margin-left: 225px; font-size: 20px; font-weight: 400; line-height: 1; }
.auth-submit--link { margin-top: 32px; justify-content: space-between; }
.auth-text-link { display: inline-block; margin-top: 28px; font-size: 13px; font-weight: 700; }
.auth-aside { color: var(--ink-quiet); font-size: 12px; line-height: 1.65; margin: 28px 0 0; }

@media (max-width: 900px) {
    .auth-shell { display: block; }
    .auth-story { display: none; }
    .auth-main { min-height: 100svh; padding: 24px 24px 20px; }
    .auth-main__top { justify-content: space-between; gap: 18px; }
    .auth-mobile-brand { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .auth-mobile-brand img { max-width: 72px; max-height: 30px; object-fit: contain; object-position: left center; }
    .auth-mobile-brand strong { color: var(--ink); font-size: 16px; font-weight: 800; }
    .auth-mobile-brand span { color: var(--ink-quiet); font-size: 10px; font-weight: 600; }
    .auth-main__center { padding: 64px 0; }
}
@media (max-width: 430px) {
    .auth-main { padding: 20px 22px 20px; }
    .auth-main__secure { font-size: 0; }
    .auth-main__secure span { font-size: 10px; }
    .auth-main__center { align-items: flex-start; padding: 70px 0 60px; }
    .auth-intro { margin-bottom: 36px; }
    .auth-submit__arrow { margin-left: 0; position: static; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-field input, .auth-submit { transition: none; }
    .auth-submit:active { transform: none; }
}
