:root {
    --auth-canvas: #f4f7fb;
    --auth-text: #152033;
    --auth-muted: #68758a;
    --auth-line: #dfe6f0;
    --auth-primary: #2563eb;
    --auth-primary-hover: #1d4ed8;
    --auth-focus: 0 0 0 3px rgba(37, 99, 235, .13);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--auth-canvas); }

.auth-body {
    min-height: 100vh;
    margin: 0;
    background: var(--auth-canvas);
    color: var(--auth-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.auth-shell { display: grid; grid-template-columns: minmax(360px, .8fr) minmax(480px, 1.2fr); min-height: 100vh; }

.auth-story {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    padding: 30px clamp(30px, 4vw, 68px);
    color: #fff;
    background:
        radial-gradient(circle at 16% 12%, rgba(34, 211, 238, .24), transparent 25%),
        radial-gradient(circle at 85% 76%, rgba(59, 130, 246, .28), transparent 30%),
        linear-gradient(145deg, #07152f 0%, #10295b 62%, #0c3970 100%);
}

.auth-story::before,
.auth-story::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}
.auth-story::before { right: -145px; bottom: -125px; width: 410px; height: 410px; box-shadow: 0 0 0 70px rgba(255,255,255,.025); }
.auth-story::after { top: 23%; left: -110px; width: 230px; height: 230px; }

.auth-brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: var(--auth-text); font-size: 15px; font-weight: 850; text-decoration: none; letter-spacing: -.01em; }
.auth-brand--light { position: relative; z-index: 1; color: #fff; }
.auth-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, #3b82f6, #06b6d4); box-shadow: 0 8px 20px rgba(6, 182, 212, .2); }
.auth-brand-mark svg { width: 19px; height: 19px; color: #fff; }

.auth-story-copy { position: relative; z-index: 1; max-width: 510px; margin: auto 0; padding: 70px 0; }
.auth-eyebrow { display: block; margin-bottom: 14px; color: #7dd3fc; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.auth-story h2 { max-width: 500px; margin: 0; color: #fff; font-size: clamp(31px, 3.4vw, 49px); font-weight: 840; line-height: 1.08; letter-spacing: -.045em; }
.auth-story-copy > p { max-width: 480px; margin: 19px 0 0; color: #c6d6eb; font-size: 15px; line-height: 1.65; }
.auth-benefits { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.auth-benefits li { position: relative; padding-left: 27px; color: #e2edf9; font-size: 13px; font-weight: 650; }
.auth-benefits li::before { content: "✓"; position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: rgba(34, 211, 238, .14); color: #67e8f9; font-size: 11px; font-weight: 900; }
.auth-story-note { position: relative; z-index: 1; margin: 0; color: #8fa8c7; font-size: 11px; }

.auth-main { display: grid; min-height: 100vh; padding: 24px clamp(22px, 5vw, 82px); background: radial-gradient(circle at 80% 8%, #edf5ff, transparent 28%), var(--auth-canvas); }
.auth-mobile-head { display: none; }
.auth-panel { width: min(100%, 430px); margin: auto; }
.auth-panel-tools { display: flex; justify-content: flex-end; margin-bottom: 26px; }

.auth-panel .language-switcher { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 4px; border: 1px solid var(--auth-line); border-radius: 9px; background: rgba(255,255,255,.72); }
.auth-panel .language-switcher-label { padding-left: 7px; color: var(--auth-muted); font-size: 10px; font-weight: 750; }
.auth-panel .language-switcher-options { display: flex; gap: 2px; margin: 0; padding: 2px; border-radius: 7px; background: #edf1f6; }
.auth-panel .language-switcher-options button { min-width: 34px; min-height: 27px; margin: 0; padding: 0 7px; border: 0; border-radius: 6px; background: transparent; color: #607089; font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.auth-panel .language-switcher-options button:hover { color: var(--auth-text); }
.auth-panel .language-switcher-options button.active { background: #fff; color: var(--auth-primary); box-shadow: 0 1px 3px rgba(15,23,42,.12); }

.auth-heading { margin-bottom: 22px; }
.auth-heading h1 { margin: 0; color: #12203a; font-size: 29px; font-weight: 840; line-height: 1.18; letter-spacing: -.035em; }
.auth-heading p { margin: 8px 0 0; color: var(--auth-muted); font-size: 13px; }

.auth-form { display: grid; gap: 15px; margin: 0; }
.auth-field { min-width: 0; }
.auth-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.auth-field label { display: block; margin: 0; color: #34435b; font-size: 12px; font-weight: 750; }
.auth-field-head a { color: var(--auth-primary); font-size: 11px; font-weight: 750; text-decoration: none; }
.auth-field-head a:hover { text-decoration: underline; }
.auth-field input { display: block; width: 100%; min-height: 43px; margin: 0; padding: 9px 11px; border: 1px solid #ccd7e5; border-radius: 9px; background: #fff; color: var(--auth-text); font: inherit; font-size: 13px; box-shadow: 0 1px 2px rgba(15,23,42,.02); transition: border-color .15s ease, box-shadow .15s ease; }
.auth-field input::placeholder { color: #9aa7b8; }
.auth-field input:hover { border-color: #afbdd0; }
.auth-field input:focus { border-color: #60a5fa; box-shadow: var(--auth-focus); outline: none; }
.auth-field input[aria-invalid='true'] { border-color: #f87171; }
.auth-field-error { margin: 5px 0 0; color: #b42318; font-size: 11px; }

.auth-password { position: relative; }
.auth-password input { padding-right: 68px; }
.auth-password-toggle { position: absolute; top: 50%; right: 6px; min-height: 31px; margin: 0; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: #52627a; font: inherit; font-size: 10px; font-weight: 800; transform: translateY(-50%); cursor: pointer; }
.auth-password-toggle:hover { background: #f1f5f9; color: var(--auth-primary); }

.auth-submit { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 43px; margin: 3px 0 0; padding: 0 16px; border: 1px solid var(--auth-primary); border-radius: 9px; background: var(--auth-primary); color: #fff; font: inherit; font-size: 13px; font-weight: 800; box-shadow: 0 7px 17px rgba(37,99,235,.18); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.auth-submit:hover { border-color: var(--auth-primary-hover); background: var(--auth-primary-hover); box-shadow: 0 9px 20px rgba(37,99,235,.23); transform: translateY(-1px); }
.auth-submit:active { transform: none; }

.auth-secondary { margin: 20px 0 0; padding-top: 17px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); font-size: 12px; text-align: center; }
.auth-secondary a { color: var(--auth-primary); font-weight: 800; text-decoration: none; }
.auth-secondary a:hover { text-decoration: underline; }

.auth-alert { margin-bottom: 18px; padding: 10px 12px; border: 1px solid; border-radius: 9px; font-size: 11px; }
.auth-alert--success { border-color: #a7e4bd; background: #effbf3; color: #17603a; }
.auth-alert--danger { border-color: #f5c2c7; background: #fff4f4; color: #912018; }
.auth-alert strong { display: block; margin-bottom: 3px; }
.auth-alert ul { margin: 0; padding-left: 17px; }

.password-requirements { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 9px; margin: 7px 0 0; padding: 0; color: #7a8798; font-size: 10px; list-style: none; }
.password-requirements li { position: relative; padding-left: 15px; }
.password-requirements li::before { content: "•"; position: absolute; left: 2px; color: #a7b1bf; }
.password-requirements li.is-valid { color: #15803d; font-weight: 700; }
.password-requirements li.is-valid::before { content: "✓"; left: 0; color: #16a34a; }

@media (max-width: 920px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-story { display: none; }
    .auth-main { align-content: start; min-height: 100vh; padding: 20px clamp(18px, 7vw, 52px) 38px; }
    .auth-mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
    .auth-panel { margin: 0 auto; }
    .auth-panel-tools { position: absolute; top: 18px; right: clamp(18px, 7vw, 52px); margin: 0; }
    .auth-panel .language-switcher-label { display: none; }
}

@media (max-width: 520px) {
    .auth-main { padding: 17px 17px 32px; }
    .auth-mobile-head { margin-bottom: 45px; }
    .auth-panel-tools { top: 16px; right: 17px; }
    .auth-heading h1 { font-size: 26px; }
    .password-requirements { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
