:root {
    color-scheme: dark;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --background: #07111f;
    --panel: rgba(15, 29, 48, 0.94);
    --panel-border: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --input: #0b1728;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --danger-border: rgba(248, 113, 113, 0.35);
    --danger-text: #fecaca;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(14, 165, 233, 0.18),
            transparent 36%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(34, 197, 94, 0.10),
            transparent 34%
        ),
        var(--background);
}

button,
input {
    font: inherit;
}

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

.login-panel {
    width: min(100%, 460px);
    padding: 36px;
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}

.brand-mark {
    display: grid;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 16px;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.14);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 10px;
}

.login-form label {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #26374d;
    border-radius: 10px;
    outline: none;
    color: var(--text);
    background: var(--input);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.login-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.login-form button {
    margin-top: 18px;
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    color: #03111b;
    background: var(--accent);
    cursor: pointer;
    font-weight: 750;
    transition:
        background 160ms ease,
        transform 160ms ease;
}

.login-form button:hover {
    background: var(--accent-hover);
}

.login-form button:active {
    transform: translateY(1px);
}

.error-message {
    padding: 12px 14px;
    border: 1px solid var(--danger-border);
    border-radius: 10px;
    color: var(--danger-text);
    background: var(--danger-bg);
    font-size: 14px;
}

.login-panel footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--panel-border);
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 520px) {
    .login-panel {
        padding: 26px 22px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand-mark {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
    }

    h1 {
        font-size: 26px;
    }
}
