:root {
    color-scheme: dark;
    --login-bg: #0b0d14;
    --login-surface: rgba(24, 28, 41, 0.64);
    --login-border: rgba(255, 255, 255, 0.14);
    --login-text: #f6f8ff;
    --login-muted: #a7aebe;
    --login-blue: #2997ff;
    --login-violet: #8b7bff;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    color: var(--login-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(45, 139, 255, 0.24), transparent 27rem),
        radial-gradient(circle at 91% 85%, rgba(123, 88, 255, 0.20), transparent 26rem),
        linear-gradient(140deg, #141926 0%, #0b0d14 47%, #10101a 100%);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    position: relative;
    isolation: isolate;
}

.ambient-orb {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.48;
    pointer-events: none;
    z-index: -1;
}

.orb-blue { top: -13rem; left: -10rem; background: radial-gradient(circle, rgba(37, 143, 255, 0.38), transparent 67%); }
.orb-violet { right: -11rem; bottom: -14rem; background: radial-gradient(circle, rgba(145, 99, 255, 0.34), transparent 67%); }

.login-card {
    width: min(100%, 440px);
    padding: 25px;
    border: 1px solid var(--login-border);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(49, 56, 76, 0.72), rgba(20, 23, 34, 0.61));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.39), inset 0 1px 0 rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(27px) saturate(1.18);
}

.brand-row { display: flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--login-blue), var(--login-violet));
    box-shadow: 0 10px 25px rgba(36, 135, 255, 0.30);
    color: white;
    font-size: 15px;
}
.brand-name { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: -0.25px; }

.login-heading { margin: 31px 0 25px; }
h1 { margin: 0; font-size: clamp(26px, 6vw, 32px); line-height: 1.1; letter-spacing: -1.05px; }

.login-message {
    margin: -7px 0 20px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 119, 119, 0.28);
    border-radius: 12px;
    background: rgba(229, 92, 92, 0.10);
    color: #ffb2b2;
    font-size: 12px;
    font-weight: 600;
}

.login-form { display: flex; flex-direction: column; }
.field-label { margin: 0 0 8px; color: #dde2f0; font-size: 12px; font-weight: 700; }
.password-label { margin-top: 18px; }
.input-shell { position: relative; display: flex; align-items: center; }
.input-shell > i:first-child { position: absolute; left: 14px; color: #7d879d; font-size: 13px; pointer-events: none; }
.input-shell input {
    width: 100%;
    height: 49px;
    padding: 0 45px 0 39px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    outline: none;
    background: rgba(7, 10, 16, 0.39);
    color: var(--login-text);
    font: inherit;
    font-size: 13px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.input-shell input::placeholder { color: #727b8e; }
.input-shell input:focus {
    border-color: rgba(88, 166, 255, 0.78);
    background: rgba(6, 10, 18, 0.62);
    box-shadow: 0 0 0 4px rgba(42, 143, 255, 0.13);
}
.password-toggle {
    position: absolute;
    right: 7px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9ea8ba;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}
.password-toggle:hover { color: white; background: rgba(255, 255, 255, 0.08); }

.remember-control {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
    color: #c9cfdd;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    user-select: none;
}
.remember-control input {
    width: 16px;
    height: 16px;
    margin: 0;
    border-radius: 5px;
    accent-color: var(--login-blue);
    cursor: pointer;
}
.remember-control:has(input:focus-visible) {
    outline: 3px solid rgba(42, 143, 255, 0.18);
    outline-offset: 4px;
    border-radius: 5px;
}

.login-submit {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    border: 1px solid rgba(204, 225, 255, 0.38);
    border-radius: 14px;
    background: linear-gradient(115deg, #0a84ff, #5d63e7);
    box-shadow: 0 13px 25px rgba(17, 111, 236, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: white;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}
.login-submit:hover { filter: brightness(1.09); transform: translateY(-1px); }
.login-submit:active { transform: translateY(0); }

@media (max-width: 480px) {
    .login-page { padding: 16px; align-items: start; padding-top: max(42px, 9vh); }
    .login-card { padding: 21px; border-radius: 23px; }
    .login-heading { margin-top: 28px; }
}
