:root {
    color-scheme: light dark;
}

* {
    box-sizing: border-box;
}

body {
    align-items: center;
    background: #f3f5f8;
    color: #1f2937;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    max-width: 440px;
    padding: 32px;
    text-align: center;
    width: 100%;
}

.brand {
    color: #2f6fdb;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    font-size: 1.4rem;
    margin: 16px 0 12px;
}

.card > h1:first-child {
    margin-top: 0;
}

p {
    line-height: 1.5;
    margin: 0 0 16px;
}

.hint {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 16px 0 0;
}

.error {
    color: #b91c1c;
}

.progress {
    background: #e5e9f0;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

#progress {
    background: #2f6fdb;
    height: 100%;
    transition: width 200ms ease;
    width: 5%;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;
        color: #e5e7eb;
    }

    .card {
        background: #111c33;
        border-color: #24324d;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    }

    .hint {
        color: #94a3b8;
    }

    .progress {
        background: #24324d;
    }
}
