:root {
    color-scheme: dark;
    --background: #090e19;
    --surface: #111827;
    --border: #263247;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #6366f1;
    --success: #34d399;
    --danger: #f87171;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse at top,
            #1a2342 0,
            var(--background) 55%
        );
    color: var(--text);
    font-family: system-ui, -apple-system,
                 BlinkMacSystemFont, sans-serif;
}

.setup-shell {
    width: min(100% - 32px, 560px);
    margin: 48px auto;
}

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

.brand-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg,#818cf8,#4338ca);
    font-weight: 800;
    font-size: 20px;
}

.brand strong {
    display: block;
    font-size: 22px;
}

.brand span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 2px;
}

.language-switch {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.language-switch a {
    padding: 8px 13px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid var(--border);
}

.language-switch a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.setup-card,
.requirements {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
}

.setup-card {
    box-shadow: 0 20px 60px #0005;
}

.eyebrow {
    color: #a5b4fc;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

h1 {
    font-size: 28px;
    margin: 12px 0;
}

.subtitle {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 17px 0 8px;
}

input {
    width: 100%;
    padding: 13px 15px;
    background: #0b1220;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    font-size: 15px;
}

input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

button {
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    background: var(--accent);
    border: 0;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #4f46e5;
}

button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.notice {
    padding: 15px;
    border-radius: 9px;
    margin: 15px 0;
}

.notice.error {
    background: #450a0a;
    color: #fca5a5;
}

.notice.success {
    background: #052e25;
    color: #6ee7b7;
}

.requirements {
    margin-top: 18px;
}

.requirements h2 {
    font-size: 15px;
    margin: 0 0 15px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.requirement {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 8px;
    background: #0b1220;
    color: var(--muted);
    font-size: 12px;
}

.ok {
    color: var(--success);
}

.fail {
    color: var(--danger);
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 24px;
}

@media (max-width: 480px) {
    .setup-shell {
        margin: 24px auto;
    }

    .setup-card,
    .requirements {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }
}
