:root {
    color-scheme: light dark;
    --bg: #f4f5f7;
    --card: #ffffff;
    --text: #1a1c1f;
    --muted: #5f6672;
    --border: #dcdfe4;
    --accent: #1a73e8;
    --error-bg: #fdecea;
    --error-text: #9b1c16;
    --info-bg: #e8f0fe;
    --info-text: #174ea6;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #16181d;
        --card: #1e2127;
        --text: #e8eaed;
        --muted: #9aa0a6;
        --border: #33373d;
        --accent: #8ab4f8;
        --error-bg: #3d1f1d;
        --error-text: #f2b8b5;
        --info-bg: #1f2a3d;
        --info-text: #a8c7fa;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
    width: 100%;
    max-width: 24rem;
    padding: 2.5rem 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

h1 { margin: 0; font-size: 1.5rem; letter-spacing: -0.01em; }
.subtitle { margin: 0.25rem 0 1.75rem; color: var(--muted); }

.notice {
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: left;
}
.notice--error { background: var(--error-bg); color: var(--error-text); }
.notice--info  { background: var(--info-bg);  color: var(--info-text); }

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
}
.button:hover { border-color: var(--accent); }
.button__mark {
    font-weight: 700;
    color: var(--accent);
}

.footnote {
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.identity { margin: 0 0 1.25rem; }
.muted { color: var(--muted); font-size: 0.9rem; }

.apps {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    text-align: left;
    border-top: 1px solid var(--border);
}
.apps li {
    padding: 0.6rem 0.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

button.button { cursor: pointer; font: inherit; font-weight: 500; }
