:root {
    --bg: #050508;
    --card: rgba(18, 18, 26, 0.85);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f4f4f8;
    --text-muted: #9494ad;
    --accent: #e50914;
    --accent-glow: rgba(229, 9, 20, 0.45);
    --error: #ef4444;
    --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --radius: 16px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 55% at 50% -20%, rgba(229, 9, 20, 0.16), transparent 55%),
        radial-gradient(circle at 100% 80%, rgba(96, 165, 250, 0.06), transparent 40%),
        var(--bg);
}
.login-wrap {
    width: 100%;
    max-width: 420px;
    animation: fadeUp 0.55s var(--ease) both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.login-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 36px 30px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 48px rgba(229,9,20,0.06);
}
.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}
.login-mark {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(145deg, #ff1a26, var(--accent), #8b0000);
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px var(--accent-glow);
    flex-shrink: 0;
}
h1 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}
.sub {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}
label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.35);
    color: var(--text);
    font-size: 16px;
    margin-bottom: 22px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
    outline: none;
    border-color: rgba(229, 9, 20, 0.55);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(145deg, #ff2430, var(--accent));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
    box-shadow: 0 4px 20px var(--accent-glow);
}
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}
button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.err {
    display: none;
    margin-bottom: 16px;
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    font-size: 13px;
}
.err.show { display: block; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
