:root {
    color-scheme: dark;
    --login-bg: #031321;
    --login-text: #b8ccdb;
    --login-muted: #82a9c0;
    --login-blue: #00bdf5;
    --login-border: #296185;
}
* { box-sizing: border-box; }
body.phantom-login {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 40px 24px;
    overflow-x: clip;
    color: var(--login-text);
    background: var(--login-bg) url('/brand/login-signal-background-display.webp?asset=362b409590f5527e35b67d5a09989471071f270a1d797f1a9571e7ee8918b993') center / cover fixed no-repeat;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.login-shell {
    position: relative;
    width: min(100%, 434px);
    padding: 20px 39px 29px;
}
/* Generated frame lighting: nine-slicing keeps corners intact when messages
   or smaller screens change the form height. Lighten removes its black matte. */
.login-shell::before {
    content: '';
    position: absolute;
    inset: -21px;
    border: 45px solid transparent;
    border-image: url('/brand/login-signal-frame-display.webp?asset=1053d79998b193bc4029d36cec5799dfba7ea569d0837cdf015054bbf88b178d') 160 fill / 45px / 0 stretch;
    mix-blend-mode: lighten;
    pointer-events: none;
    z-index: 1;
}
.login-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 21px;
    background: #00111f;
    pointer-events: none;
    z-index: 0;
}
.login-brand, .login-access { position: relative; z-index: 2; }
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    mix-blend-mode: screen;
}
.login-mark { display: block; width: 157px; max-width: 65%; height: auto; }
.login-wordmark {
    display: block;
    width: 263px;
    max-width: 100%;
    height: auto;
    margin-top: -21px;
    mix-blend-mode: screen;
}
.login-access { width: 100%; min-width: 0; }
.login-form { display: grid; gap: 17px; }
.login-field { display: grid; gap: 6px; min-width: 0; }
.login-field label { color: #b9d0df; font-size: 14px; font-weight: 400; }
.login-input-wrap { position: relative; }
.login-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #91bdd5;
    pointer-events: none;
    transition: color 160ms ease;
}
.login-input-wrap:focus-within .login-input-icon { color: #70d8ff; }
.login-field input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px 10px 48px;
    border: 1px solid var(--login-border);
    border-radius: 10px;
    background: rgba(4, 24, 40, .82);
    color: var(--login-text);
    caret-color: #83d5f4;
    font: inherit;
    font-size: 14px;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.login-field input::placeholder { color: var(--login-muted); opacity: 1; }
.login-field input:hover { border-color: #4585aa; }
.login-field input:focus-visible {
    outline: 2px solid #2baadb;
    outline-offset: 3px;
    border-color: var(--login-blue);
    background: #071e30;
}
.login-field input:autofill {
    -webkit-text-fill-color: var(--login-text);
    box-shadow: 0 0 0 100px #071e30 inset;
    caret-color: #83d5f4;
}
.login-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 3px;
    padding: 10px 40px;
    border: 2px solid #02bbf7;
    border-radius: 12px;
    background: #062443;
    box-shadow: inset 0 8px 20px rgba(0, 119, 242, .46), inset 0 1px 1px #9fe5ff, 0 0 15px rgba(0, 142, 246, .25);
    color: #c0d7e5;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}
.login-submit:hover { background: #0a365d; box-shadow: inset 0 8px 20px rgba(0, 119, 242, .46), inset 0 1px 1px #9fe5ff, 0 0 21px rgba(0, 166, 255, .4); }
.login-submit:focus-visible { outline: 2px solid #82dfff; outline-offset: 5px; }
.login-submit:active { background: #051e37; }
.login-submit-arrow {
    position: absolute;
    right: 18px;
    width: 20px;
    height: 20px;
    color: #9ccbe3;
    transition: transform 160ms ease;
}
.login-submit:hover .login-submit-arrow { transform: translateX(3px); }
.login-message {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid #315871;
    border-radius: 8px;
    background: #0a2235;
    color: #b1c6d6;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.login-message--error { border-color: #8e6250; background: #291c1b; color: #ddbeb0; }
@media (max-height: 600px) and (min-width: 701px) {
    body.phantom-login { padding-block: 24px; }
    .login-shell { padding-top: 18px; padding-bottom: 24px; }
    .login-mark { width: 130px; }
    .login-wordmark { width: 224px; margin-top: -18px; }
}
@media (max-width: 700px) {
    body.phantom-login { padding: 26px 14px; background-attachment: scroll; }
    .login-shell { padding: 20px 26px 26px; }
    .login-shell::before { inset: -10px; }
    .login-shell::after { inset: 10px; border-radius: 20px; }
    .login-field input { min-height: 48px; font-size: 16px; }
}
@media (max-width: 360px) {
    body.phantom-login { padding-inline: 8px; }
    .login-shell { padding-inline: 26px; }
    .login-shell::before { inset: -6px; }
    .login-shell::after { inset: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-field input, .login-submit, .login-submit-arrow, .login-input-icon { transition: none; }
    .login-submit:hover .login-submit-arrow { transform: none; }
}
