* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --auth-bg: #050816;
    --auth-panel: rgba(14, 22, 42, 0.92);
    --auth-border: rgba(148, 163, 184, 0.18);
    --auth-text: #f8fafc;
    --auth-muted: #94a3b8;
    --auth-purple: #8b5cf6;
    --auth-blue: #3b82f6;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(
            circle at 20% 5%,
            rgba(59, 130, 246, 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at 80% 95%,
            rgba(139, 92, 246, 0.14),
            transparent 34%
        ),
        var(--auth-bg);
}

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

.auth-card {
    width: min(100%, 430px);
    padding: 38px;
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    background: var(--auth-panel);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(18px);
}

.auth-logo {
    width: 220px;
    max-width: 100%;
    display: block;
    margin-bottom: 34px;
}

.auth-heading {
    margin-bottom: 25px;
}

.auth-kicker {
    color: #a78bfa;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-heading h1,
.auth-error-card h1 {
    margin: 9px 0 8px;
    font-size: 31px;
    line-height: 1.1;
}

.auth-heading p,
.auth-error-card p {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.6;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(248, 113, 113, 0.32);
    border-radius: 12px;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.24);
    font-size: 13px;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.auth-form label > span {
    display: block;
    margin-bottom: 7px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 780;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 12px;
    color: white;
    background: rgba(2, 6, 23, 0.76);
    font: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--auth-purple);
    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.14);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--auth-muted);
    font-size: 13px;
}

.auth-remember span {
    margin: 0 !important;
}

.auth-form button,
.auth-primary-link {
    min-height: 49px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: white;
    background:
        linear-gradient(
            135deg,
            var(--auth-blue),
            var(--auth-purple)
        );
    font: inherit;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.auth-form button:hover,
.auth-primary-link:hover {
    filter: brightness(1.08);
}

.auth-forgot {
    display: block;
    margin-top: 20px;
    color: #cbd5e1;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}

.auth-forgot:hover {
    color: white;
    text-decoration: underline;
}

.auth-error-card {
    text-align: center;
}

.auth-error-code {
    color: #a78bfa;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.auth-primary-link {
    margin-top: 24px;
    padding-inline: 24px;
}