:root {
    color-scheme: dark;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #111113;
    color: #f6f6f8;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
svg { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.login-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 48px 20px;
    background:
        radial-gradient(ellipse at 65% 0%, #2b2b303d, transparent 56%),
        radial-gradient(ellipse at 2% 5%, #24334b25, transparent 40%),
        linear-gradient(160deg, #1c1c1f, #101012 85%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px 34px 25px;
    border: 1px solid #ffffff0d;
    border-radius: 20px;
    background: linear-gradient(145deg, #19191c, #161618);
    box-shadow: 0 24px 80px #00000024, inset 0 1px 0 #ffffff03;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 23px;
    color: #9bbaff;
    border: 1px solid #668fe52b;
    border-radius: 13px;
    background: linear-gradient(140deg, #335fa52b, #1e2c441c);
    box-shadow: inset 0 1px 0 #ffffff08;
}
.brand-mark svg { width: 25px; height: 25px; }
.eyebrow { margin: 0 0 7px; color: #9d9da7; font-size: 11px; }
h1 { margin: 0; font-size: 30px; line-height: 1.6; font-weight: 800; letter-spacing: -1px; }
.intro { margin: 5px 0 0; font-size: 13px; color: #aaaab3; line-height: 1.9; }
.client-context { margin: 10px 0 0; color: #a9c2ff; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.login-form { margin-top: 29px; }
.form-field + .form-field { margin-top: 19px; }
.form-field label { display: block; margin: 0 2px 8px; color: #c7c7ce; font-size: 12px; font-weight: 500; }
.input-wrap { position: relative; }
.text-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 42px 0 14px;
    border: 1px solid #ffffff0a;
    border-radius: 11px;
    outline: none;
    background: linear-gradient(180deg, #202023, #1d1d20);
    box-shadow: inset 0 1px 3px #00000014, 0 1px 0 #ffffff02;
    color: #eeeef3;
    font-size: 13px;
    text-align: right;
    transition: border-color .18s, box-shadow .18s;
}
.text-input::placeholder { color: #92929e; opacity: 1; font-size: 12px; }
.text-input:focus { border-color: #588cff; box-shadow: 0 0 0 3px #3774ee20; }
.text-input.input-validation-error { border-color: #e08c8c; }
.field-icon { position: absolute; pointer-events: none; inset-inline-start: 14px; top: 16px; width: 17px; height: 17px; color: #898995; }
.password-wrap .text-input { padding-inline-end: 45px; }
.password-toggle {
    position: absolute;
    inset-inline-end: 4px;
    top: 4px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9d9daa;
    cursor: pointer;
}
.password-toggle svg { width: 19px; height: 19px; }
.password-toggle:hover { color: #e4e4ec; background: #ffffff06; }
.password-toggle[aria-pressed="true"] .eye-slash { display: none; }
.password-toggle:focus-visible, .submit-button:focus-visible { outline: 2px solid #a7c5ff; outline-offset: 4px; }

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    margin-top: 29px;
    padding: 11px 16px;
    border: 1px solid #709eff;
    border-bottom-color: #164aa4;
    border-radius: 9px;
    background: linear-gradient(180deg, #538aff 0%, #2864e0 55%, #1d50bd 100%);
    box-shadow: inset 0 1px 0 #ffffff30, 0 3px 9px #00000030;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s, transform .15s;
}
.submit-button svg { width: 17px; height: 17px; }
.submit-button:hover { filter: brightness(1.1); }
.submit-button:active { transform: translateY(1px); }
.validation-summary-valid { display: none; }
.validation-summary-errors { padding: 12px 14px; margin-bottom: 22px; background: #e36e6e0d; border: 1px solid #e08c8c38; border-radius: 10px; color: #ffb7b7; font-size: 12px; line-height: 1.9; }
.validation-summary ul { margin: 0; padding: 0; list-style: none; }
.validation-summary li + li { margin-top: 4px; }
.account-help { margin-top: 25px; text-align: center; }
.account-help p { margin: 0; color: #a8a8b2; font-size: 11px; line-height: 2; }
.login-footer { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 27px; padding-top: 20px; border-top: 1px solid #ffffff08; color: #92929f; font-size: 10px; }
.login-footer svg { width: 14px; height: 14px; }

@media (max-width: 440px) {
    .login-shell { padding: 24px 16px; }
    .login-card { padding: 29px 24px 23px; border-radius: 17px; }
    h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
