:root {
    color-scheme: light;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #263c5d;
    background: #f7faff;
    font-synthesis: none;
    -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.login-page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at 88% 37%, #dbe8fe 0, #edf4ff 34%, transparent 67%), #f8fbff;
}

.login-shell {
    flex: 1;
    width: min(1320px, 100%);
    margin-inline: auto;
    padding: clamp(32px, 4.5vw, 70px) clamp(24px, 5vw, 70px);
    display: grid;
    grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 6vw, 100px);
}

.login-card {
    width: 100%;
    padding: clamp(26px, 3vw, 42px);
    border: 1px solid #dfe8f6;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 60px -44px #6584ad;
}
.login-eyebrow { margin: 0 0 16px; color: #246bdb; font-size: 13px; letter-spacing: .15em; }
.login-card h1 { margin: 0; font-size: clamp(36px, 4vw, 48px); font-weight: 300; letter-spacing: -.035em; line-height: 1.2; }
.login-intro { margin: 14px 0 30px; color: #5e7491; font-size: 15px; line-height: 1.6; }
.login-field { margin-bottom: 22px; }
.login-field label { display: block; margin-bottom: 10px; font-size: 14px; }
.login-field input {
    display: block;
    width: 100%;
    min-height: 52px;
    border: 1px solid #ccd9ed;
    border-radius: 8px;
    background: #fcfdff;
    color: #263c5d;
    padding: 12px 15px;
    font-size: 16px;
}
.login-field input::placeholder { color: #8193ad; opacity: 1; }
.login-field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.login-field input::-webkit-inner-spin-button,
.login-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.login-page :where(a, button, summary):focus-visible {
    outline: 2px solid #246bdb;
    outline-offset: 4px;
}
.login-field input:focus {
    border-color: #5485d4;
    outline: none;
    box-shadow: none;
}

.login-pin-help { margin: 0 0 24px; color: #586c88; font-size: 12px; line-height: 1.7; }
.login-pin-help summary { width: fit-content; cursor: pointer; border-radius: 3px; }
.login-pin-help p { margin: 12px 0 0; padding: 12px; background: #f4f7fc; border-radius: 8px; }
.login-submit {
    width: 100%;
    min-height: 52px;
    border: 1px solid #2768d1;
    border-radius: 8px;
    background: #2a6bdd;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}
.login-submit:hover { background: #205bc2; }
.login-submit:disabled { opacity: .7; cursor: wait; }
.login-help { margin: 26px 0 0; color: #637895; font-size: 12px; line-height: 1.8; text-align: center; }
.login-help strong { font-weight: 500; }
.login-status, .login-error { padding: 12px; margin: 16px 0 0; border-radius: 8px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.login-status { color: #225b49; background: #edf7f1; }
.login-error { color: #a42d3f; background: #fff1f3; border: 1px solid #f4d8df; }

.login-welcome { min-width: 0; text-align: center; }
.login-welcome-label { margin: 0; color: #55769f; font-size: 11px; letter-spacing: .17em; text-transform: uppercase; }
.login-orbit { position: relative; width: min(100%, 46vh, 500px); aspect-ratio: 1; margin: -12px auto -24px; pointer-events: none; }
.login-orbit img, .login-orbit video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse, #000 49%, transparent 72%);
    mask-image: radial-gradient(ellipse, #000 49%, transparent 72%);
}
.login-orbit-video { visibility: hidden; }
.login-orbit[data-state="playing"] .login-orbit-video { visibility: visible; }
.login-welcome h2 { position: relative; margin: 0; font-size: clamp(32px, 3.5vw, 49px); font-weight: 300; letter-spacing: -.025em; line-height: 1.2; }
.login-welcome-note { max-width: 34ch; margin: 16px auto 0; color: #5c789e; font-size: 14px; line-height: 1.6; text-wrap: balance; }
.login-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.login-skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px; border-radius: 6px; background: #fff; }
.login-skip-link:focus { top: 12px; }

@media (min-width: 761px) and (max-height: 850px) {
    .login-shell { padding-block: 24px; }
    .login-card { padding: 28px 32px; }
    .login-intro { margin-bottom: 24px; }
    .login-field { margin-bottom: 18px; }
}

@media (max-width: 760px) {
    .login-shell { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 36px; padding-block: 28px; }
    .login-card { max-width: 440px; }
    .login-welcome { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .login-orbit-video { display: none; }
    .login-orbit-settled[hidden] { display: block !important; }
}
