:root {
    color-scheme: dark;
    --bg: #090f1c;
    --panel: #111b2d;
    --panel-border: #263650;
    --text: #edf3ff;
    --muted: #91a1ba;
    --accent: #3985ff;
    --accent-hover: #5b9aff;
    --danger-bg: #3b1e2a;
    --danger: #ffb4c2;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(40, 111, 220, .20), transparent 48%),
        var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px 20px;
}
.login-card {
    width: 100%;
    max-width: 440px;
    padding: 42px;
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(21, 34, 55, .98), rgba(13, 23, 39, .98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}
.brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #2874ed, #55a5ff);
    color: white;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -1px;
    box-shadow: 0 8px 25px rgba(47, 126, 255, .28);
}
.eyebrow {
    margin: 27px 0 9px;
    color: #72aaff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}
h1 { margin: 0; font-size: 30px; letter-spacing: -.8px; }
.subtitle { margin: 10px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.field { margin: 0 0 21px; }
label { display: block; margin-bottom: 9px; color: #dce6f7; font-size: 13px; font-weight: 650; }
.form-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #30425f;
    border-radius: 10px;
    outline: none;
    background: #0b1423;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color .18s, box-shadow .18s;
}
.form-input::placeholder { color: #65758e; }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(57, 133, 255, .16); }
.password-wrap { position: relative; }
.password-wrap .form-input { padding-right: 88px; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8dbaff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}
.submit-button {
    width: 100%;
    height: 49px;
    margin-top: 5px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
    transition: background .18s, transform .18s;
}
.submit-button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.submit-button span { margin-left: 7px; font-size: 18px; }
.error-box {
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid #71394b;
    border-radius: 9px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 13px;
}
.error-box p { margin: 0; }
.field-error { margin: 7px 0 0; color: var(--danger); font-size: 12px; }
.security-note {
    margin: 26px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}
.security-note span { margin-right: 6px; color: #54d6a0; font-size: 9px; }
footer { margin-top: 25px; color: #62738d; font-size: 11px; }
@media (max-width: 520px) {
    .login-shell { justify-content: center; padding: 20px 14px; }
    .login-card { padding: 30px 24px; border-radius: 17px; }
    h1 { font-size: 27px; }
}
