@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
    color-scheme: dark;
    --background: #07101d;
    --panel: #101b2d;
    --line: #2a3e5c;
    --text: #f2f6fc;
    --muted: #91a4bd;
    --accent: #776cff;
    --danger: #ff8c98;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 0, #24355a 0, transparent 42%),
        var(--background);
    font-family: 'DM Sans', sans-serif;
}

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

.login-card {
    width: min(390px, 100%);
    display: grid;
    gap: 18px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, #132137, var(--panel));
    box-shadow: 0 24px 70px #0008;
}

.login-card header span {
    color: #a9a2ff;
    font: 500 10px/1 'IBM Plex Mono', monospace;
    letter-spacing: .15em;
}

.login-card h1 {
    margin: 10px 0 0;
    font-size: 28px;
    letter-spacing: -.04em;
}

.login-card label {
    display: grid;
    gap: 7px;
    color: #cbd6e5;
    font-size: 12px;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #354d6d;
    border-radius: 9px;
    outline: 0;
    color: var(--text);
    background: #0a1525;
    font: inherit;
}

.login-card input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #776cff22;
}

.login-card button {
    padding: 12px;
    border: 1px solid #8b82ff;
    border-radius: 9px;
    color: white;
    background: var(--accent);
    font: 700 13px 'DM Sans', sans-serif;
    cursor: pointer;
}

.login-card button:hover { background: #867cff; }

.login-error {
    padding: 10px 12px;
    border: 1px solid #7c3c4b;
    border-radius: 8px;
    color: var(--danger);
    background: #421e2a66;
    font-size: 12px;
}

.captcha-field { display: grid; gap: 8px; }
.captcha-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #cbd6e5; font-size: 12px; font-weight: 600; }
.captcha-head button { padding: 0; border: 0; color: #aaa4ff; background: transparent; font-size: 10px; font-weight: 600; }
.captcha-head button:hover { color: white; background: transparent; }
.captcha-control { display: grid; grid-template-columns: 1fr 92px; gap: 8px; }
.captcha-control img { width: 100%; height: 58px; border: 1px solid #354d6d; border-radius: 9px; object-fit: cover; image-rendering: pixelated; background: #0a1525; }
.captcha-control input { height: 58px; padding: 10px 8px; text-align: center; text-transform: uppercase; font: 700 17px/1 'IBM Plex Mono', monospace; letter-spacing: .1em; }
.captcha-field small { color: var(--muted); font-size: 9px; }
