:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #18181b; background: #f4f4f5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; align-content: center; justify-items: center; padding: 32px 16px; }
main { width: 100%; max-width: 460px; background: #fff; padding: 36px; border: 1px solid #e4e4e7; box-shadow: 0 12px 40px #18181b0d; }
header { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.brand { display: grid; place-items: center; width: 32px; height: 32px; background: #8e151a; color: #fff; font-size: 22px; font-weight: 700; }
h1 { margin: 0; font-size: 18px; font-weight: 600; }
h2 { font-size: 25px; line-height: 1.25; margin: 0 0 16px; }
h3 { font-size: 17px; margin-top: 0; }
p { line-height: 1.6; overflow-wrap: anywhere; }
label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0; }
input, select { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #71717a; border-radius: 3px; background: #fff; color: inherit; font: inherit; font-weight: 400; }
button { display: block; width: 100%; min-height: 44px; margin: 12px 0; padding: 12px 16px; background: #8e151a; color: #fff; border: 1px solid #8e151a; border-radius: 3px; font: inherit; font-weight: 600; cursor: pointer; }
button:hover { background: #701015; }
button.secondary { color: #18181b; background: #fff; border-color: #a1a1aa; }
button.secondary:hover { background: #f4f4f5; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #8e151a; outline-offset: 3px; }
[role="alert"] { color: #8e151a; }
[role="alert"]:empty { display: none; }
section { margin: 24px 0; padding-top: 20px; border-top: 1px solid #e4e4e7; }
code { font-size: 15px; overflow-wrap: anywhere; }
#totp-secret { display: block; padding: 12px; background: #f4f4f5; }
#totp-qr { display: block; max-width: 100%; height: auto; margin: 16px auto; }
#recovery-codes { padding-left: 24px; line-height: 1.8; }
nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; }
a { color: #8e151a; font-size: 14px; padding: 8px 0; text-underline-offset: 3px; }
footer { margin-top: 24px; font-size: 12px; color: #52525b; }
@media (max-width: 480px) { body { align-content: start; padding: 16px 12px; } main { padding: 24px; } }
