* { box-sizing: border-box; }
body { margin: 0; color: #242820; background: #f4f1e9; font-family: Georgia, serif; }
.login-page { width: min(100% - 2rem, 30rem); margin: 2rem auto; }
.brand { display: flex; align-items: center; justify-content: center; gap: 0; color: inherit; font-size: 2.5rem; text-decoration: none; }
.brand .brand-icon { margin-right: -.7em; }
.login-panel { margin-top: 1.5rem; padding: clamp(1rem, 5vw, 2rem); background: #d1d0b7; border: 1px solid #777c65; border-radius: .5rem; text-align: center; }
.human-icon { width: auto; height: auto; max-height: 27rem; max-width: 100%; mix-blend-mode: multiply; }
h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
p { line-height: 1.5; }
fieldset { border: 0; padding: 0; margin: 1.5rem 0; text-align: left; }
label { display: block; margin-bottom: .4rem; }
input { width: 100%; margin-bottom: 1rem; padding: .75rem; font: inherit; border: 1px solid #777c65; border-radius: .25rem; }
button, .back-button { display: block; width: 100%; padding: .8rem 1rem; border: 1px solid #555e49; border-radius: .25rem; font: inherit; }
button { background: #e1dfd1; color: #555; }
.back-button { background: #566247; color: white; text-decoration: none; }
.back-button:hover { background: #404d34; }
a:focus-visible { outline: 3px solid #242820; outline-offset: 4px; }
form { margin:1.25rem 0; text-align:left; }
button { cursor:pointer; color:#242820; }
button:hover { background:#f2efe4; }
input[type="hidden"] { display:none; }
.login-error { padding:.75rem; border:1px solid #8a3028; background:#fff0eb; color:#70251f; }
.enrollment-qr { display:block; width:min(100%,260px); height:auto; margin:1rem auto; background:white; }
#setup-secret { display:block; overflow-wrap:anywhere; padding:.75rem; background:#fffaf1; }
details { text-align:left; margin:1rem 0; }
.recovery-codes { padding:0; list-style:none; display:grid; gap:.5rem; font-size:.82rem; overflow-wrap:anywhere; }
.recovery-codes li { padding:.5rem; background:#fffaf1; }
.account-role { font-weight:bold; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline:3px solid #242820; outline-offset:3px; }
/* Return navigation belongs at the upper-left, before the account content. */
.login-back-nav { padding:1rem clamp(1rem,3vw,2rem) 0; }
.login-back-nav .back-button { width:fit-content; max-width:100%; text-align:left; }
.login-page { margin-top:1rem; }
