:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #090d16;
    color: #f7f8fc;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 16%, rgba(59, 130, 246, .24), transparent 34rem),
        radial-gradient(circle at 88% 82%, rgba(139, 92, 246, .22), transparent 32rem),
        #090d16;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-card {
    width: min(100%, 520px);
    padding: clamp(28px, 6vw, 52px);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 30px;
    background: rgba(18, 24, 39, .78);
    box-shadow: 0 30px 90px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.08);
    backdrop-filter: blur(22px) saturate(125%);
}

.mark {
    width: 58px;
    height: 58px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 12px 35px rgba(79, 70, 229, .42);
}

.mark span { border-radius: 4px; background: rgba(255,255,255,.9); }
.mark span:nth-child(2) { opacity: .45; }
.mark span:nth-child(3) { opacity: .7; }

.eyebrow {
    margin: 28px 0 9px;
    color: #8fb8ff;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 420px;
    font-size: clamp(32px, 7vw, 50px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.lead { color: #a9b2c5; line-height: 1.6; margin: 18px 0 30px; }

form { display: grid; gap: 10px; }
label { color: #c8cede; font-size: 13px; font-weight: 650; }
.password-field { position: relative; }

input {
    width: 100%;
    height: 54px;
    padding: 0 94px 0 16px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 15px;
    outline: none;
    background: rgba(3, 7, 18, .52);
    color: #fff;
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}

input:focus { border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(59,130,246,.16); }

.password-field button {
    position: absolute;
    right: 7px;
    top: 7px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #cfd6e6;
    cursor: pointer;
}

.primary {
    height: 54px;
    margin-top: 7px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    color: white;
    font: inherit;
    font-weight: 760;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(59,130,246,.23);
    transition: transform .2s, filter .2s;
}

.primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.primary:disabled { opacity: .6; cursor: wait; transform: none; }
.message { min-height: 22px; margin: 2px 0 0; color: #fca5a5; font-size: 14px; }

.privacy {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #7f8a9f;
    font-size: 12px;
    line-height: 1.5;
}

.privacy span { color: #34d399; font-size: 10px; line-height: 1.8; }

@media (max-width: 520px) {
    .login-shell { padding: 14px; }
    .login-card { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
