:root { color-scheme: dark; --ground: #121c18; --panel: #1b2922; --ivory: #f2ead9; --muted: #d2d3bf; --gold: #d6b77a; --rule: #766448; --error: #ffb8a0; font-family: system-ui,sans-serif; background: var(--ground); color: var(--ivory); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at top left,#26372c,transparent 68%); }
header { min-height: 4.5rem; padding: .75rem max(1.25rem,calc((100vw - 66rem)/2)); border-bottom: 1px solid var(--rule); background: var(--ground); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
a { color: var(--gold); text-underline-offset: .2em; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ivory); text-decoration: none; font: 1.3rem Georgia,serif; }
.seal { display: grid; place-items: center; width: 2.35rem; height: 2.6rem; border: 1px solid var(--gold); outline: 1px solid var(--rule); outline-offset: -4px; color: var(--gold); font-size: 1.1rem; }
.card { width: min(41rem,calc(100% - 2rem)); margin: clamp(2rem,8vw,6rem) auto; padding: clamp(1.4rem,5vw,3rem); border: 1px solid var(--rule); background: var(--panel); box-shadow: inset 0 0 0 4px var(--panel), inset 0 0 0 5px #495044; }
.signin-card { max-width: 33rem; }
h1,h2 { margin: 0; font-family: Georgia,serif; font-weight: 400; line-height: 1.07; }
h1 { font-size: clamp(2.65rem,8vw,4rem); }
h2 { font-size: 1.85rem; margin-top: 1.8rem; }
p { color: var(--muted); line-height: 1.65; }
form { margin-top: 1.5rem; }
label { display: block; margin-bottom: .45rem; font-weight: 600; }
input { display: block; width: 100%; min-width: 0; min-height: 2.85rem; padding: .6rem .75rem; border: 1px solid #8f8a72; border-radius: .15rem; background: #101a15; color: var(--ivory); font: inherit; }
button { min-height: 2.8rem; padding: .62rem .95rem; color: #1a211a; background: var(--gold); border: 1px solid var(--gold); border-radius: .15rem; font: inherit; font-weight: 600; cursor: pointer; }
button:enabled:hover { filter: brightness(1.12); }
button:disabled { opacity: .65; cursor: wait; }
a:focus-visible,button:focus-visible,input:focus-visible { outline: 3px solid #f3db9e; outline-offset: 3px; }
.signin-card button { width: 100%; margin-top: .9rem; }
.input-row { display: flex; gap: .6rem; }
.input-row button { flex: 0 0 auto; }
.secondary { background: transparent; color: var(--ivory); border-color: var(--rule); }
ul { margin: 1rem 0; padding: 0; list-style: none; }
li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid #52554a; }
li span { overflow-wrap: anywhere; }
li button { flex: none; }
.status { color: var(--ivory); }
.status[data-error="true"] { color: var(--error); }
.status:empty { margin: 0; }
.back,.quiet { display: inline-block; margin-top: 1rem; }
@media (max-width: 32rem) { .input-row { flex-direction: column; } }
