:root {
    color-scheme: dark;
    font-family: "DM Sans", sans-serif;
    color: #e8f0fb;
    background: #07152b;
}

* { box-sizing: border-box; }
body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(38rem circle at 50% 5%, rgb(39 111 183 / 20%), transparent 72%),
        radial-gradient(30rem circle at 0% 100%, rgb(28 69 117 / 14%), transparent 70%),
        #07152b;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 64px 20px 30px;
}
.back-link {
    position: absolute;
    top: 25px;
    left: max(24px, calc((100vw - 1060px) / 2));
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #9db1ca;
    font-size: 12px;
    font-weight: 600;
    transition: color .18s ease;
}
.back-link:hover { color: #e8f5ff; }
.back-link span { font-size: 17px; }
.login-card {
    width: min(100%, 430px);
    padding: 35px clamp(23px, 7vw, 42px) 25px;
    border: 1px solid rgb(126 172 219 / 20%);
    border-radius: 17px;
    background:
        radial-gradient(22rem circle at 50% 0%, rgb(43 105 165 / 12%), transparent 70%),
        linear-gradient(145deg, rgb(13 31 56 / 97%), rgb(8 24 46 / 98%));
    box-shadow: 0 28px 90px rgb(0 0 0 / 35%), inset 0 1px 0 rgb(255 255 255 / 4%);
}
.login-brand {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: 30px;
}
.login-brand img { display: block; width: min(100%, 215px); height: auto; border-radius: 4px; }
.login-brand span { color: #a7bdd5; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.login-heading { margin-bottom: 25px; text-align: center; }
.eyebrow { margin: 0 0 7px; color: #69cde5; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.login-heading h1 { margin: 0; color: #f0f6ff; font-family: Manrope, sans-serif; font-size: 27px; letter-spacing: -.04em; }
.login-heading > p:last-child { margin: 9px auto 0; color: #91a6c0; font-size: 12px; line-height: 1.65; }
#login-form { display: grid; gap: 17px; }
.login-field { display: grid; gap: 7px; color: #c4d2e3; font-size: 11px; font-weight: 700; }
.login-field input {
    width: 100%;
    min-height: 45px;
    padding: 0 12px;
    border: 1px solid rgb(143 172 209 / 21%);
    border-radius: 8px;
    outline: none;
    color: #edf5ff;
    background: rgb(3 15 31 / 68%);
    font-size: 13px;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.login-field input:focus { border-color: #4b98e8; box-shadow: 0 0 0 3px rgb(58 132 208 / 14%); }
.password-control { position: relative; display: block; }
.password-control input { padding-right: 47px; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    color: #839ab6;
    background: transparent;
    cursor: pointer;
}
.password-toggle:hover, .password-toggle:focus-visible { color: #d7edff; background: rgb(255 255 255 / 6%); outline: none; }
.password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#password-eye-slash { display: none; }
.password-toggle.is-visible #password-eye-slash { display: block; }
.remember-option { display: inline-flex; width: fit-content; align-items: center; gap: 9px; margin-top: 1px; color: #c3d1e2; cursor: pointer; font-size: 11px; font-weight: 600; }
.remember-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.remember-check { display: grid; width: 16px; height: 16px; place-items: center; border: 1px solid rgb(144 172 208 / 34%); border-radius: 4px; background: rgb(4 17 34 / 70%); }
.remember-option input:checked + .remember-check { border-color: #56b5d8; background: #14799a; }
.remember-option input:checked + .remember-check::after { width: 7px; height: 4px; transform: translateY(-1px) rotate(-45deg); border-bottom: 2px solid white; border-left: 2px solid white; content: ""; }
.remember-option input:focus-visible + .remember-check { outline: 2px solid #73cce5; outline-offset: 3px; }
.remember-hint { margin: -12px 0 0 25px; color: #7289a4; font-size: 10px; line-height: 1.5; }
.login-submit {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 1px;
    padding: 0 15px;
    border: 1px solid #4b96ff;
    border-radius: 8px;
    color: white;
    background: linear-gradient(135deg, #317ce8, #2764c4);
    box-shadow: 0 7px 20px rgb(35 101 204 / 20%);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: filter .16s ease, transform .16s ease;
}
.login-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.login-submit span:last-child { font-size: 17px; }
.login-status { margin: 0; padding: 10px 12px; border: 1px solid rgb(255 144 128 / 30%); border-radius: 7px; color: #ffc0b7; background: rgb(122 40 39 / 16%); font-size: 11px; line-height: 1.55; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px 0 0; color: #7086a1; font-size: 9px; }
.login-security span { color: #56c69c; font-size: 8px; }

@media (max-width: 480px) {
    .login-shell { padding: 58px 15px 20px; }
    .back-link { top: 19px; left: 18px; }
    .login-card { padding-top: 29px; }
}
