        :root {
            color-scheme: light;
            --page: #edf2f7;
            --paper: #fbfcfe;
            --navy: #102653;
            --navy-deep: #0b1c40;
            --blue: #236f92;
            --blue-hover: #1f5f7c;
            --ink: #1b2b43;
            --muted: #52647b;
            --line: #8292a6;
            --focus: #8c5c00;
            --danger-bg: #fff1ef;
            --danger: #8b2f27;
            --radius: 10px;
            --shadow: 0 24px 65px rgba(16, 38, 83, .14);
            --font: "Segoe UI", Tahoma, Arial, sans-serif;
        }
        * { box-sizing: border-box; }
        html, body { min-height: 100%; margin: 0; }
        body {
            min-height: 100vh;
            min-height: 100svh;
            display: flex;
            flex-direction: column;
            background: var(--page);
            color: var(--ink);
            font-family: var(--font);
            -webkit-font-smoothing: antialiased;
        }
        .page-topline { height: 6px; flex: 0 0 6px; background: var(--blue); }
        .skip-link { position:absolute; z-index:5; top:10px; left:10px; padding:10px 14px; transform:translateY(-160%); border-radius:4px; background:var(--paper); color:var(--navy); font-weight:700; }
        .skip-link:focus { transform:translateY(0); }
        .auth-main { flex: 1; display: grid; place-items: center; padding: 42px 24px; }
        .auth-frame {
            width: min(100%, 980px);
            min-height: 570px;
            display: grid;
            grid-template-columns: minmax(300px, .88fr) minmax(390px, 1.12fr);
            overflow: hidden;
            border-radius: var(--radius);
            background: var(--paper);
            box-shadow: var(--shadow);
        }
        .brand-panel {
            position: relative;
            isolation: isolate;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: space-between;
            min-height: 100%;
            overflow: hidden;
            padding: 42px 40px 34px;
            background: var(--navy);
            color: #f7f9fc;
        }
        .brand-panel::before, .brand-panel::after {
            position: absolute;
            z-index: -1;
            border: 1px solid rgba(218, 232, 246, .13);
            border-radius: 50%;
            content: "";
            pointer-events: none;
        }
        .brand-panel::before { width: 420px; height: 420px; right: -245px; top: 50px; }
        .brand-panel::after { width: 310px; height: 310px; right: -190px; top: 105px; }
        .brand-kicker {
            display: flex;
            align-items: center;
            gap: 9px;
            color: #d9e6f5;
            font-size: 13px;
            font-weight: 650;
            letter-spacing: .12em;
            text-transform: uppercase;
        }
        .brand-kicker::before { width: 22px; height: 2px; background: #6fc0d7; content: ""; }
        .brand-core { width: 100%; margin: 42px 0; }
        .brand-seal {
            width: 172px;
            height: 190px;
            display: grid;
            place-items: center;
            margin: 0 0 30px;
            padding: 13px;
            border: 1px solid rgba(229, 238, 248, .34);
            border-radius: 86px 86px 16px 16px;
            background: rgba(255, 255, 255, .07);
        }
        .brand-seal img { display: block; width: 126px; height: auto; }
        .brand-panel h1 {
            max-width: 360px;
            margin: 0;
            color: #f7f9fc;
            font-size: clamp(27px, 3vw, 36px);
            font-weight: 650;
            letter-spacing: -.035em;
            line-height: 1.12;
        }
        .brand-panel .brand-description {
            max-width: 330px;
            margin: 15px 0 0;
            color: #d2deee;
            font-size: 15px;
            line-height: 1.6;
        }
        .brand-caption { color: #c0cee0; font-size: 13px; letter-spacing: .04em; }
        .form-panel { display: flex; align-items: center; padding: 54px clamp(32px, 6vw, 70px); }
        .login-content { width: 100%; max-width: 390px; margin-inline: auto; }
        .form-eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
        .form-panel h2 { margin: 0; color: var(--navy); font-size: 29px; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
        .form-intro { margin: 10px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.55; }
        .auth-message { margin: 0 0 18px; }
        .auth-message:empty { display: none; }
        .auth-message .alert { margin: 0; padding: 12px 14px; border: 0; border-left: 3px solid var(--danger); border-radius: 4px; background: var(--danger-bg); color: var(--danger); font-size: 14px; line-height: 1.45; }
        .auth-feedback { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid; border-radius: 4px; font-size: 15px; line-height: 1.5; }
        .auth-feedback-success { border-color: #287548; background: #eaf5ee; color: #20553a; }
        .auth-feedback-error { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
        .field { margin-bottom: 19px; }
        .field label { display: block; margin: 0 0 7px; color: var(--ink); font-size: 15px; font-weight: 650; }
        .input-wrap { position: relative; }
        .auth-input {
            display: block;
            width: 100%;
            min-height: 49px;
            padding: 12px 14px;
            border: 1px solid var(--line);
            border-radius: 5px;
            background: #fdfefe;
            color: var(--ink);
            font: inherit;
            font-size: 16px;
            transition: border-color 150ms ease, box-shadow 150ms ease;
        }
        .auth-input::placeholder { color: #64758a; opacity: 1; }
        .auth-input:focus { border-color: var(--blue); outline: none; }
        .auth-input:focus-visible { box-shadow: 0 0 0 3px rgba(35, 111, 146, .18); }
        .auth-input.password-input { padding-right: 80px; }
        .password-toggle {
            position: absolute;
            top: 50%;
            right: 7px;
            min-height: 36px;
            padding: 5px 9px;
            transform: translateY(-50%);
            border: 0;
            border-radius: 4px;
            background: transparent;
            color: #315b75;
            font: inherit;
            font-size: 14px;
            font-weight: 650;
            cursor: pointer;
        }
        .password-toggle:hover { background: #edf4f8; }
        .auth-button {
            width: 100%;
            min-height: 50px;
            margin-top: 4px;
            border: 0;
            border-radius: 5px;
            background: var(--blue);
            color: #f7f9fc;
            font: inherit;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: background-color 150ms ease, transform 150ms ease;
        }
        .auth-button:hover { background: var(--blue-hover); }
        .auth-button:focus-visible { outline-color: #f7f9fc; box-shadow: 0 0 0 6px var(--navy); }
        .auth-button:active { transform: translateY(1px); }
        .auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 22px; }
        .auth-links a { color: #215d7c; font-size: 15px; font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
        .auth-links a:hover { text-decoration: underline; }
        :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
        .auth-input:focus-visible { outline: none; }
        .page-footer { display: flex; justify-content: center; padding: 0 20px 20px; color: #4d5d73; font-size: 13px; text-align: center; }
        .page-footer a { margin-left: 4px; color: var(--navy); font-weight: 650; text-decoration: none; }
        .page-footer a:hover { text-decoration: underline; }
        @media (max-width: 760px) {
            .auth-main { padding: 20px 14px; }
            .auth-frame { width: min(100%, 520px); min-height: 0; grid-template-columns: 1fr; }
            .brand-panel { min-height: 0; padding: 22px 25px; }
            .brand-kicker { font-size: 13px; }
            .brand-core { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 17px; margin: 17px 0; }
            .brand-seal { width: 74px; height: 82px; margin: 0; padding: 6px; border-radius: 38px 38px 8px 8px; }
            .brand-seal img { width: 56px; }
            .brand-panel h1 { font-size: 24px; }
            .brand-panel .brand-description { margin-top: 7px; font-size: 14px; line-height: 1.45; }
            .brand-caption { font-size: 13px; }
            .form-panel { padding: 31px 25px 34px; }
            .form-intro { margin-bottom: 22px; }
        }
        @media (max-width: 380px) {
            .auth-main { padding-inline: 10px; }
            .brand-panel, .form-panel { padding-inline: 20px; }
            .brand-core { grid-template-columns: 65px 1fr; gap: 12px; }
            .brand-seal { width: 64px; height: 72px; }
            .brand-seal img { width: 49px; }
            .brand-panel h1 { font-size: 21px; }
            .auth-links { flex-direction: column; }
        }
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
        }
        @media (forced-colors: active) {
            .auth-frame, .auth-input, .auth-button, .brand-seal { border: 1px solid CanvasText; }
            .password-toggle { color: ButtonText; }
        }
