:root {
    color-scheme: dark;
    --auth-bg: #0d1218;
    --auth-card: #151c24;
    --auth-card-2: #10161d;
    --auth-text: #f4f6f8;
    --auth-muted: #9da8b5;
    --auth-border: rgba(255,255,255,.10);
    --auth-accent: #ff4d6d;
    --auth-good: #58d68d;
    --auth-warn: #ffca6b;
}
* { box-sizing: border-box; }
body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,77,109,.12), transparent 28rem),
        radial-gradient(circle at 85% 85%, rgba(88,214,141,.08), transparent 24rem),
        var(--auth-bg);
    color: var(--auth-text);
    display: grid;
    place-items: center;
    padding: 28px 16px;
}
.auth-shell { width: min(480px, 100%); }
.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-brand h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(34px, 7vw, 48px);
    font-weight: 600;
}
.auth-brand p { margin: 7px 0 0; color: var(--auth-muted); font-size: 13px; }
.auth-card {
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)), var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 28px 80px rgba(0,0,0,.35);
}
.auth-card h2 { margin: 0 0 8px; font-size: 22px; }
.auth-card > p, .auth-help { color: var(--auth-muted); line-height: 1.55; font-size: 13px; }
.auth-field { margin-top: 16px; }
.auth-field label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 700; color: #d7dde4; }
.auth-field input {
    width: 100%;
    border: 1px solid var(--auth-border);
    background: var(--auth-card-2);
    color: var(--auth-text);
    border-radius: 13px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
}
.auth-field input:focus { border-color: rgba(255,77,109,.65); box-shadow: 0 0 0 3px rgba(255,77,109,.10); }
.auth-code input { letter-spacing: .28em; font-size: 18px; font-weight: 700; text-align: center; }
.auth-button {
    width: 100%;
    border: 0;
    border-radius: 999px;
    margin-top: 20px;
    padding: 13px 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    color: white;
    background: var(--auth-accent);
}
.auth-button.secondary { background: rgba(255,255,255,.08); border: 1px solid var(--auth-border); }
.auth-message { border-radius: 13px; padding: 11px 13px; margin: 14px 0 0; font-size: 13px; line-height: 1.45; }
.auth-error { background: rgba(255,77,109,.12); border: 1px solid rgba(255,77,109,.35); color: #ffdce3; }
.auth-success { background: rgba(88,214,141,.10); border: 1px solid rgba(88,214,141,.28); color: #dff9e9; }
.auth-warning { background: rgba(255,202,107,.10); border: 1px solid rgba(255,202,107,.28); color: #ffedc7; }
.auth-qr-wrap { display: grid; place-items: center; margin: 18px 0; }
#auth-qrcode { background: #fff; padding: 12px; border-radius: 14px; }
.auth-secret {
    display: block;
    width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
    padding: 11px;
    border-radius: 12px;
    background: #0b1016;
    border: 1px solid var(--auth-border);
    color: #dce3eb;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}
.auth-codes { margin: 14px 0 0; padding: 14px; background: #0b1016; border: 1px solid var(--auth-border); border-radius: 14px; }
.auth-codes code { display: block; padding: 4px 0; color: #f4f6f8; font-size: 13px; }
.auth-footer { margin-top: 14px; text-align: center; color: var(--auth-muted); font-size: 11px; }
.auth-inline-link { color: #ff9db0; text-decoration: none; }
