:root {
    --navy: #0b3b78;
    --blue: #1579d0;
    --blue-dark: #0962ae;
    --orange: #ff8a00;
    --ink: #15253a;
    --muted: #66768a;
    --line: #dce5ef;
    --soft: #f4f8fc;
    --danger: #b42318;
    --success: #126b46;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f7faff;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: var(--blue-dark);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
    min-height: 100vh;
}

.brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(44px, 5.5vw, 84px);
    color: #fff;
    background:
        radial-gradient(circle at 18% 20%, rgba(73, 171, 255, 0.5), transparent 32%),
        radial-gradient(circle at 90% 80%, rgba(255, 138, 0, 0.25), transparent 32%),
        linear-gradient(145deg, #073269 0%, #075a9f 58%, #0c73bd 100%);
}

.brand-panel::before,
.brand-panel::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 44px;
    content: "";
    transform: rotate(24deg);
}

.brand-panel::before {
    top: -140px;
    right: -170px;
    width: 420px;
    height: 420px;
}

.brand-panel::after {
    bottom: -240px;
    left: -130px;
    width: 520px;
    height: 520px;
}

.brand-panel__content {
    position: relative;
    z-index: 1;
    max-width: 570px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-panel .eyebrow {
    color: #8ed0ff;
}

.brand-panel h1 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(32px, 3.1vw, 46px);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.headline-accent {
    color: #8ed0ff;
}

.brand-panel p {
    max-width: 530px;
    margin: 28px 0 34px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.65;
}

.brand-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-points span {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 650;
}

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.login-card {
    width: min(100%, 470px);
    padding: 42px;
    border: 1px solid rgba(11, 59, 120, 0.09);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(33, 71, 116, 0.12);
}

.logo-link {
    display: inline-flex;
    margin-bottom: 38px;
}

.logo {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
}

.card-heading h2,
.site-picker h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 32px;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.card-heading p,
.site-picker p {
    margin: 0 0 30px;
    color: var(--muted);
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 22px;
}

.field label,
.label-row label {
    display: block;
    margin-bottom: 8px;
    color: #26364b;
    font-size: 14px;
    font-weight: 700;
}

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.field input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #cbd7e4;
    border-radius: 10px;
    outline: none;
    color: var(--ink);
    background: #fff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input::placeholder {
    color: #98a5b5;
}

.field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(21, 121, 208, 0.12);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 67px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    border: 0;
    color: var(--blue-dark);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    transform: translateY(-50%);
}

.link-button,
.back-button {
    padding: 0;
    border: 0;
    color: var(--blue-dark);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.back-button {
    margin-top: 24px;
    font-size: 14px;
}

.primary-button {
    width: 100%;
    min-height: 51px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #0865b6);
    box-shadow: 0 10px 20px rgba(21, 121, 208, 0.2);
    cursor: pointer;
    font-weight: 750;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.primary-button:hover {
    box-shadow: 0 13px 26px rgba(21, 121, 208, 0.28);
    transform: translateY(-1px);
}

.primary-button:focus-visible,
.link-button:focus-visible,
.back-button:focus-visible,
.password-toggle:focus-visible,
a:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(21, 121, 208, 0.3);
    outline-offset: 3px;
}

.validation-summary,
.field-error {
    color: var(--danger);
    font-size: 13px;
}

.validation-summary {
    padding: 12px 14px;
    border: 1px solid #f5c2be;
    border-radius: 9px;
    background: #fff3f2;
}

.validation-summary:empty,
.field-error:empty {
    display: none;
}

.validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.field-error {
    display: block;
    margin-top: 7px;
}

.card-footer,
.support-link {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.card-footer {
    margin: 28px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.support-link {
    margin-top: 32px;
}

.card-footer a,
.support-link a,
.text-link {
    font-weight: 700;
    text-decoration: none;
}

.success-message {
    margin-bottom: 8px;
    padding: 14px 16px;
    border: 1px solid #a9dec6;
    border-radius: 10px;
    color: var(--success);
    background: #effbf5;
    line-height: 1.55;
}

.site-list {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.site-list a {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--soft);
    font-weight: 700;
    text-decoration: none;
}

.site-list a:hover {
    border-color: var(--blue);
    color: var(--blue-dark);
}

.is-hidden {
    display: none;
}

@media (max-width: 980px) {
    .login-shell {
        display: block;
    }

    .brand-panel {
        min-height: auto;
        padding: 40px;
    }

    .brand-panel h1 {
        max-width: 700px;
        font-size: 34px;
    }

    .brand-panel p {
        margin: 20px 0 0;
    }

    .brand-points {
        display: none;
    }

    .form-panel {
        padding: 48px 24px;
    }
}

@media (max-width: 600px) {
    .brand-panel {
        padding: 30px 22px 34px;
    }

    .brand-panel h1 {
        font-size: 27px;
    }

    .brand-panel p {
        font-size: 15px;
    }

    .form-panel {
        align-items: flex-start;
        padding: 22px 14px 36px;
    }

    .login-card {
        padding: 30px 22px;
        border-radius: 18px;
        box-shadow: 0 14px 40px rgba(33, 71, 116, 0.1);
    }

    .logo-link {
        margin-bottom: 30px;
    }

    .logo {
        width: 200px;
    }

    .card-heading h2,
    .site-picker h2 {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
