:root {
    color-scheme: dark;
    --auth-bg: #121318;
    --auth-surface: #292a2f;
    --auth-input: #1a1b20;
    --auth-text: #e3e2e8;
    --auth-muted: #c1c6d7;
    --auth-accent: #aac7ff;
    --auth-danger: #ffb4ab;
    --auth-success: #43edcd;
}

body {
    background:
        radial-gradient(ellipse at 82% -18%, rgba(65, 143, 255, 0.14), transparent 42%),
        var(--auth-bg) !important;
    color: var(--auth-text) !important;
}

.card {
    background: linear-gradient(145deg, rgba(41, 42, 47, 0.98), rgba(26, 27, 32, 0.98)) !important;
    border: 1px solid rgba(193, 198, 215, 0.2) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 40px rgba(65, 143, 255, 0.06);
}

.logo-img {
    filter: drop-shadow(0 0 14px rgba(170, 199, 255, 0.28)) !important;
    animation: none !important;
}

.logo-title {
    background: linear-gradient(135deg, #aac7ff 0%, #d7e3ff 55%, #78a8f5 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.logo-subtitle {
    color: var(--auth-accent) !important;
}

.form-title,
h1,
h2 {
    color: var(--auth-text) !important;
}

label {
    color: var(--auth-muted) !important;
}

input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 46px;
    padding: 11px 14px !important;
    background: var(--auth-input) !important;
    border: 1px solid rgba(193, 198, 215, 0.2) !important;
    border-radius: 12px !important;
    color: var(--auth-text) !important;
}

input:focus {
    border-color: var(--auth-accent) !important;
    box-shadow: 0 0 0 3px rgba(170, 199, 255, 0.14);
    outline: none !important;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--auth-accent);
}

button,
button[type="submit"] {
    min-height: 46px;
    background: var(--auth-accent) !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #002f65 !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button:hover,
button[type="submit"]:hover {
    background: #c5d8ff !important;
    box-shadow: 0 8px 22px rgba(65, 143, 255, 0.24);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid rgba(170, 199, 255, 0.45) !important;
    border-radius: 12px !important;
    color: var(--auth-accent) !important;
}

.btn-secondary:hover {
    background: rgba(170, 199, 255, 0.12) !important;
    color: #d7e3ff !important;
}

.status {
    background: rgba(67, 237, 205, 0.1) !important;
    border-color: rgba(67, 237, 205, 0.3) !important;
    color: var(--auth-success) !important;
}

.error {
    background: rgba(255, 180, 171, 0.1) !important;
    border-color: rgba(255, 180, 171, 0.3) !important;
    color: var(--auth-danger) !important;
}

.divider {
    color: #8b91a0 !important;
}

.divider::before,
.divider::after {
    background: rgba(193, 198, 215, 0.18) !important;
}

.hint {
    border-color: rgba(193, 198, 215, 0.18) !important;
    color: #8b91a0 !important;
}

.hint code {
    background: var(--auth-input) !important;
    color: var(--auth-accent) !important;
}

.back,
a {
    color: var(--auth-accent) !important;
}

@media (max-width: 520px) {
    body {
        padding: 16px !important;
    }

    .card {
        padding: 28px 22px !important;
        border-radius: 20px !important;
    }

    .logo-img {
        width: 96px !important;
        height: 96px !important;
    }
}
