:root {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0b112b;
    background: #fafafa;
    font-synthesis: none;
    color-scheme: light;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #9b87cf; outline-offset: 4px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 12px 18px; background: #d2bef9; }
.skip-link:focus { top: 12px; }
.login-shell { display: grid; grid-template-columns: 43.4% 56.6%; min-height: 100svh; }
.login-story { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 5.3vh 7.8% 3.8vh; color: #f9f9fb; background: #101e2d; }
.story-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; stroke: none; }
.login-brand, .story-copy, .story-footer { position: relative; }
.login-brand { display: flex; align-items: center; gap: 18px; width: fit-content; }
.company-logo { display: block; flex-shrink: 0; width: 48px; height: 48px; object-fit: contain; }
.brand-name { font-size: 32px; font-weight: 700; letter-spacing: -1.7px; line-height: 1.1; }
.brand-caption { display: block; margin-top: 8px; font-size: 8px; font-weight: 500; letter-spacing: 2.5px; color: #c4cbd8; }
.story-copy { margin-top: auto; padding-top: 80px; }
.story-copy h2 { margin: 0 0 18px; font-size: clamp(32px, 3vw, 48px); font-weight: 400; line-height: 1.06; letter-spacing: -1px; }
.story-copy h2 span { color: #c6b0f5; }
.story-copy p { max-width: 340px; margin: 0; color: #b0bdcf; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.4; }
.story-footer { margin-top: 32px; border-top: 1px solid #718097; padding-top: 16px; font-size: 13px; letter-spacing: .4px; color: #a4b1c4; }
.login-main { display: flex; flex-direction: column; min-width: 0; }
.login-header { display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 24px; }
.login-header form { margin: 0; }
.language-button { display: flex; align-items: center; gap: 8px; padding: 3px 0; border: 0; background: none; font-size: 14px; }
.language-button .chevron { width: 20px; height: 20px; }
.header-divider { height: 22px; width: 1px; background: #b6bdca; }
.text-button { padding: 5px 0; background: none; border: 0; font-size: 14px; }
.login-main main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 32px; }
.login-card { width: 100%; max-width: 440px; }
.eyebrow { display: block; color: #9280bd; font-size: 11px; font-weight: 600; letter-spacing: 2px; }
.login-card h1 { margin: 20px 0 12px; color: #070c24; font-size: clamp(28px, 2.4vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -1.2px; }
.login-intro { margin: 0 0 28px; color: #69738e; font-size: 16px; line-height: 1.55; }
.stack-form { display: grid; gap: 20px; }
.field > label { display: block; margin-bottom: 8px; font-size: 14px; }
.input-wrap { display: flex; align-items: center; position: relative; }
.input-wrap > svg { position: absolute; left: 17px; pointer-events: none; color: #3e4b67; width: 21px; height: 21px; }
.input-wrap input { width: 100%; min-width: 0; height: 50px; padding: 0 52px 0 50px; border: 1px solid #c4cbd8; border-radius: 11px; background: transparent; color: #111a35; font-size: 16px; box-shadow: 0 0 0 1px #c4cbd812; }
.input-wrap input::placeholder { color: #78829c; opacity: 1; }
.input-wrap input[type=password]::placeholder { letter-spacing: 5px; font-size: 15px; }
.input-wrap input:focus { border-color: #9b87cf; }
.password-toggle { position: absolute; right: 7px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #25314f; }
.eye-slash { display: none; }
.password-toggle[aria-pressed=true] .eye-slash { display: block; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.checkbox { display: flex; align-items: center; gap: 10px; color: #5c6884; cursor: pointer; }
.checkbox input { appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid #aab4c6; border-radius: 4px; background: transparent; cursor: pointer; display: grid; place-content: center; flex-shrink: 0; }
.checkbox input:checked { background: #172741; border-color: #172741; }
.checkbox input:checked::after { content: ''; width: 10px; height: 5px; border: solid white; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.form-row > a { color: #22257c; }
a:hover, .text-button:hover, .login-footer button:hover { text-decoration: underline; text-underline-offset: 4px; }
.login-submit { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 4px; padding: 12px 52px; border: 1px solid #13213b; border-radius: 10px; background: linear-gradient(115deg, #14233c, #172640); color: white; font-size: 16px; font-weight: 600; }
.login-submit svg { position: absolute; right: 18px; width: 21px; height: 21px; }
.login-submit:hover { background: #223654; }
.signup-link { text-align: center; margin: 24px 0 0; color: #626d87; font-size: 14px; line-height: 1.5; }
.signup-link a { color: #10182f; font-weight: 700; margin-left: 5px; }
.login-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; color: #606c87; font-size: 13px; }
.login-footer nav { display: flex; gap: 20px; align-items: center; }
.login-footer nav > span { height: 21px; width: 1px; background: #aeb7c8; }
.login-footer button { padding: 0; border: 0; background: none; }
.google-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px; font-size: 14px; border: 1px solid #c4cbd8; border-radius: 10px; background: transparent; }
.google-button:hover { background: #f0edf6; }
.divider { display: flex; align-items: center; gap: 15px; margin: 24px 0; color: #69738e; font-size: 14px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #d5d9e1; }
.validation { border: 1px solid #e4bcc4; padding: 12px 16px; border-radius: 8px; background: #fff0f2; color: #9c2943; font-size: 15px; line-height: 1.6; }
.validation ul { margin: 0; padding-left: 20px; }
dialog { width: min(480px, calc(100% - 40px)); border: 1px solid #d7d0e4; border-radius: 16px; padding: 30px; color: #10182f; background: #fafafa; box-shadow: 0 20px 80px #101e2d33; }
dialog::backdrop { background: #101e2d88; }
dialog h2 { margin: 0 0 15px; font-size: 24px; }
dialog p { color: #606c87; line-height: 1.7; }
dialog a { color: #393381; }
dialog form { margin-top: 24px; text-align: right; }
dialog button { border: 0; border-radius: 7px; background: #172640; color: white; padding: 10px 20px; }
/* Desktop sizing matches the previous layout at approximately 80% browser zoom.
   Keep mobile, dialog sizing, panel proportions, and focus outlines unchanged. */
@media (min-width: 761px) {
    .login-shell svg { width: 19.2px; height: 19.2px; }
    .login-shell .story-art { width: 100%; height: 100%; }
    .login-brand { gap: 14.4px; }
    .company-logo { width: 38.4px; height: 38.4px; }
    .brand-name { font-size: 25.6px; letter-spacing: -1.36px; }
    .brand-caption { margin-top: 6.4px; font-size: 6.4px; letter-spacing: 2px; }
    .story-copy { padding-top: 64px; }
    .story-copy h2 { margin-bottom: 14.4px; font-size: clamp(25.6px, 3vw, 38.4px); letter-spacing: -.8px; }
    .story-copy p { max-width: 272px; font-size: clamp(12.8px, 1.2vw, 14.4px); }
    .story-footer { margin-top: 25.6px; padding-top: 12.8px; font-size: 10.4px; letter-spacing: .32px; }
    .login-header { gap: 16px; padding: 19.2px; }
    .language-button { gap: 6.4px; padding: 2.4px 0; font-size: 12px; }
    .language-button .chevron { width: 16px; height: 16px; }
    .header-divider { height: 17.6px; }
    .text-button { padding: 4px 0; font-size: 12px; }
    .login-main main { padding: 19.2px 25.6px; }
    .login-card { max-width: 352px; }
    .eyebrow { font-size: 8.8px; letter-spacing: 1.6px; }
    .login-card h1 { margin: 16px 0 9.6px; font-size: clamp(22.4px, 2.4vw, 28.8px); letter-spacing: -.96px; }
    .login-intro { margin-bottom: 22.4px; font-size: 12.8px; }
    .stack-form { gap: 16px; }
    .field > label { margin-bottom: 6.4px; font-size: 12px; }
    .input-wrap > svg { left: 13.6px; width: 16.8px; height: 16.8px; }
    .input-wrap input { height: 40px; padding: 0 41.6px 0 40px; border-radius: 8.8px; font-size: 12.8px; }
    /* Reserve room for the full-size password toggle even when the password is visible. */
    .input-wrap #Password { padding-right: 56px; }
    .input-wrap input[type=password]::placeholder { letter-spacing: 4px; font-size: 12px; }
    .password-toggle { right: 5.6px; width: 44px; height: 44px; border-radius: 4.8px; }
    .form-row { gap: 12.8px; font-size: 12px; }
    .checkbox { gap: 8px; }
    .checkbox input { width: 16px; height: 16px; border-radius: 3.2px; }
    .checkbox input:checked::after { width: 8px; height: 4px; transform: translateY(-.8px) rotate(-45deg); }
    .login-submit { min-height: 40px; margin-top: 3.2px; padding: 9.6px 41.6px; border-radius: 8px; font-size: 12.8px; }
    .login-submit svg { right: 14.4px; width: 16.8px; height: 16.8px; }
    .signup-link { margin-top: 19.2px; font-size: 12px; }
    .signup-link a { margin-left: 4px; }
    .login-footer { gap: 16px; padding: 19.2px; font-size: 10.4px; }
    .login-footer nav { gap: 16px; font-size: 12px; }
    .login-footer nav > span { height: 16.8px; }
    .google-button { gap: 9.6px; min-height: 40px; padding: 9.6px; font-size: 12px; border-radius: 8px; }
    .divider { gap: 12px; margin: 19.2px 0; font-size: 12px; }
    .validation { padding: 9.6px 12.8px; border-radius: 6.4px; font-size: 12px; }
    .validation ul { padding-left: 16px; }
}
@media (max-width: 760px) {
    .login-shell { display: flex; flex-direction: column; }
    .login-story { padding: 24px; }
    .login-brand { gap: 16px; }
    .brand-name { font-size: 29px; }
    .brand-caption { font-size: 7px; margin-top: 7px; }
    .story-art { height: 600px; top: -100px; opacity: .65; }
    .story-copy { padding-top: 28px; }
    .story-copy h2 { font-size: 32px; line-height: 1.18; letter-spacing: -.8px; margin-bottom: 14px; }
    .story-copy h2 br:nth-of-type(2) { display: none; }
    .story-copy h2 span::before { content: ' '; }
    .story-copy p { font-size: 16px; max-width: 315px; }
    .story-footer { display: none; }
    .login-main { flex: 1; }
    .login-header { padding: 24px 24px 0; }
    .language-button svg { width: 20px; height: 20px; }
    .login-main main { padding: 24px; }
    .eyebrow { font-size: 10px; }
    .form-row { gap: 10px; }
    .login-footer { font-size: 12px; }
    .login-footer nav { gap: 13px; }
}
@media (forced-colors: active) { .checkbox input:checked { appearance: auto; } }
