:root { font: 16px/1.5 system-ui, sans-serif; color: #292620; background: #f4efe5; color-scheme: light; }
* { box-sizing: border-box; }
body { min-height: 100dvh; margin: 0; }
.auth-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem 1rem; padding: .8rem clamp(1rem, 4vw, 2rem); border-bottom: 1px solid #ded3c3; background: #faf7f1; }
.brand { color: #473421; font: 700 1.5rem Georgia, serif; text-decoration: none; }
.auth-header nav { display: flex; flex-wrap: wrap; gap: .85rem; }
a { color: #78482c; }
.auth-card { width: min(100% - 2rem, 32rem); margin: clamp(1.5rem, 7vh, 5rem) auto; padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid #ded3c3; border-radius: 1rem; background: #fffdf9; box-shadow: 0 16px 45px #3c2d1d14; }
h1 { margin: 0 0 1rem; font: 600 2rem Georgia, serif; }
p { margin: .8rem 0; }
form { display: grid; gap: .8rem; }
form p { display: grid; gap: .25rem; margin: 0; }
label { font-weight: 600; }
input[type=email], input[type=password], input[type=text] { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid #b8a993; border-radius: .55rem; background: white; font: inherit; }
button { min-height: 44px; padding: .55rem .9rem; border: 1px solid #5e452d; border-radius: .6rem; background: #5e452d; color: white; font: 600 1rem system-ui, sans-serif; cursor: pointer; }
button:hover { background: #76583a; }
:focus-visible { outline: 3px solid #b7794d; outline-offset: 2px; }
.errorlist { padding-left: 1.2rem; color: #a02e25; }
.helptext { font-size: .85rem; color: #62594e; }
.messages { padding: .7rem 1rem; border-radius: .6rem; background: #f2e7d8; }
.eblib-login { display: block; padding: .7rem .9rem; border: 1px solid #5e452d; border-radius: .6rem; background: #5e452d; color: white; font-weight: 600; text-align: center; text-decoration: none; }
.eblib-login:hover { background: #76583a; }
.pending-code { margin: 1rem 0; font: 700 2.4rem/1 ui-monospace, monospace; letter-spacing: .3em; text-align: center; }
