:root {
    --bg: #000;
    --text: #fff;
    --muted: rgba(255, 255, 255, 0.6);
    --line: rgba(255, 255, 255, 0.15);
}

* {
    box-sizing: border-box;
}

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

.card {
    width: 100%;
    max-width: 560px;
}

.card-head {
    margin-bottom: 36px;
}

.logo {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
}

h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.sub,
.hint,
.fine {
    color: var(--muted);
    margin: 0;
}

.sub {
    font-size: 17px;
    margin-top: 10px;
}

.hint {
    font-size: 15px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    margin-bottom: 22px;
    overflow-wrap: anywhere;
}

.fine {
    font-size: 15px;
    line-height: 1.5;
    margin-top: 20px;
}

.state p {
    margin: 0 0 14px;
}

.captcha {
    margin: 8px 0 24px;
    min-height: 65px;
    display: flex;
    justify-content: center;
}

button {
    font: inherit;
    border-radius: 12px;
    padding: 18px 24px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

button.primary {
    width: 100%;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
}

button.primary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.85);
}

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

button.secondary {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

button.secondary:hover {
    border-color: var(--text);
}

.hidden {
    display: none !important;
}
