/* The account window uses the village theme; the existing wallpaper is preserved. */
:root{color-scheme:light;--ink:#f6f1e6;--gold:#d4a84f;--paper:#f6ecd5;--muted:#e8dfc9;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;}body{color:var(--ink);background:#c4ecfa url('village-brumes-fond.webp?v=brumes-4') center center/cover fixed no-repeat}
a{color:#f0d397}.hidden,[hidden]{display:none!important}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #efd08c;outline-offset:3px}
.auth-page{min-height:100vh;min-height:100dvh;display:flex;justify-content:center;align-items:center;padding:clamp(18px,4vh,44px) max(20px,env(safe-area-inset-right)) clamp(18px,4vh,44px) max(20px,env(safe-area-inset-left));position:relative;isolation:isolate}
.auth-page::before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(90deg,#ebf9ff30,#e4f5ff10 25%,#d8f1ff14 80%,#e8f8ff30);pointer-events:none}
.auth-art,.auth-art-shade,.auth-art-copy,.auth-art-copy *,.tq-auth-orientation-guard{display:none!important}
.auth-panel,.reset-card{min-width:0;max-width:100%;border:7px solid transparent;outline:1px solid #b68a4f;border-radius:25px;padding:24px 28px;color:#f6f1e6;background:radial-gradient(ellipse at 20% 0,#39756844,transparent 70%) padding-box,linear-gradient(145deg,#1b4145,#112f36 80%) padding-box,repeating-linear-gradient(95deg,#30231d 0 2px,#60432b 3px,#44301f 5px 9px) border-box;box-shadow:0 22px 70px #051e2877,inset 0 0 0 1px #b3935a99}
.auth-panel{width:min(540px,100%);display:flex;flex-direction:column;align-items:stretch;position:relative;z-index:1}
body[data-auth-view=register] .auth-panel{width:min(620px,100%)}
.auth-brand,.auth-brand-full,.auth-brand.centered{display:flex;justify-content:center;align-items:center;margin:0 auto 10px;width:min(210px,70%);text-decoration:none;filter:drop-shadow(0 3px 4px #061e2577)}
.auth-brand img,.auth-brand-full img{display:block;width:100%;height:auto;max-height:90px;object-fit:contain}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:7px 0 20px;padding:4px;border:1px solid #a88c5755;border-radius:12px;background:#092b3299}
.auth-tabs a{display:grid;place-items:center;min-height:44px;padding:10px 8px;border:1px solid transparent;border-radius:8px;color:#e1d6bd;font-size:13px;font-weight:650;text-align:center;text-decoration:none}
.auth-tabs a.active{border-color:#d7b36b;color:#fff8e5;background:linear-gradient(125deg,#2b7168,#17494d);box-shadow:inset 0 0 0 2px #0c343a}
.auth-tabs a:not(.active):hover{background:#e7d7b10d;color:#fff3d5}
.auth-form-panel{width:100%;max-width:100%}
.eyebrow{font-size:9px;line-height:1.4;color:#d9ba78;font-weight:750;letter-spacing:.16em;text-transform:uppercase;margin:0 0 7px;text-align:center}
.auth-form-panel h2,.reset-card h1,.maintenance-auth-card h2{font:700 clamp(25px,4vw,31px)/1.15 Georgia,serif;color:#fff3d7;margin:0 0 10px;text-align:center;text-shadow:0 2px 3px #092b32}
.lead{font-size:13px;line-height:1.55;color:var(--muted);margin:0 0 20px;text-align:center}
.auth-form{display:grid;gap:13px}
.auth-form>label{display:grid;gap:7px;color:#f1e6c9;font-size:12px;font-weight:650;min-width:0}
.auth-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]){width:100%;min-width:0;min-height:47px;padding:12px 13px;background:linear-gradient(120deg,#fff5df,#ead8b4);border:1px solid #cba76b;border-radius:9px;color:#233f3b;font-size:16px;box-shadow:inset 0 0 0 2px #fff5db55,inset 0 2px 4px #7a53310a}
.auth-form input::placeholder{color:#877b64;opacity:1}
.auth-form input:not([type=checkbox]):not([type=radio]):focus{border-color:#f0d397;outline:3px solid #3fa7a377;outline-offset:2px}
.auth-form input:-webkit-autofill{-webkit-text-fill-color:#233f3b;caret-color:#233f3b;box-shadow:inset 0 0 0 1000px #f6ecd5}
.login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:#e8dfc9}
.remember-row{display:flex!important;align-items:center;gap:8px!important;font-weight:500!important;min-height:26px}
.remember-row input,.check-row input{accent-color:#3f9181;width:18px;height:18px;flex-shrink:0;margin:0}
.login-options a,.check-row a{color:#f0d397;text-decoration:underline;text-underline-offset:3px}
.login-options a:hover,.check-row a:hover,.auth-legal a:hover,.back-link:hover{color:#fff3d5}
.check-row{display:flex!important;align-items:flex-start;gap:9px!important;font-size:11px!important;font-weight:400!important;line-height:1.55;color:#e8dfc9!important}
.check-row input{margin-top:1px}
.auth-primary{position:relative;min-height:49px;width:100%;padding:12px 38px;border:1px solid #d4ae67;border-radius:10px;color:#fff3d5;background:linear-gradient(125deg,#326d62,#19484b);font:700 17px/1.35 Georgia,serif;text-align:center;box-shadow:inset 0 0 0 2px #0c343a,0 3px 7px #071f2855;transition:filter .16s,transform .16s}
.auth-primary:hover{filter:brightness(1.12)}.auth-primary:active{transform:translateY(1px)}
.auth-primary b{position:absolute;right:17px;top:50%;transform:translateY(-50%);color:#e8c67f;font:400 22px/1 system-ui,sans-serif}
.auth-primary.as-link{display:grid;place-items:center;text-decoration:none}
.auth-message{margin:16px 0 0;padding:12px 14px;border:1px solid #cba76b77;border-radius:10px;background:#092b3288;color:#f2d9ab;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.auth-message:empty{display:none}.auth-message.success{color:#d4e5bc}
.auth-legal{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;font-size:10px;margin-top:23px;padding-top:16px;border-top:1px solid #c4a15d44}
.auth-legal a{color:#c8d1bc;text-underline-offset:3px;min-height:24px;display:inline-flex;align-items:center}
.server-message{padding:12px 14px;border-radius:10px;border:1px solid #cba76b;background:#f4e6c7;color:#374b40;margin:0 0 16px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.server-message.error{color:#8f4237;border-color:#bc8061;background:#f7e4d1}
.server-message.success{color:#315b43;border-color:#9ca979;background:#e9e8cd}
.back-link{display:inline-block;font-size:12px;margin:0 0 19px;color:#f0d397;text-underline-offset:3px}
.maintenance-auth-card{margin-top:10px;padding:22px 20px;background:linear-gradient(120deg,#fff5df,#e5d0a5);border-radius:14px;border:1px solid #cba76b;color:#374b40;box-shadow:inset 0 0 0 2px #fff5db77}
.maintenance-auth-card .eyebrow{color:#8a6b37}.maintenance-auth-card h2{color:#233f3b;text-shadow:none;font-size:26px}
.maintenance-auth-card>p:not(.eyebrow){font-size:13px;line-height:1.6;text-align:center}
.maintenance-auth-status{display:flex;justify-content:center;gap:9px;align-items:center;color:#655839;font-size:12px;margin-top:18px}
.maintenance-auth-status span{width:8px;height:8px;border-radius:50%;background:#b58c43}
.reset-page{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:22px}
.reset-card{width:min(510px,100%)}.reset-card .auth-brand{margin-bottom:22px}
.starter-characters{min-width:0;border:1px solid #cba76b66;border-radius:12px;padding:12px;margin:3px 0 2px;color:#f1e6c9;background:#092b3244}
.starter-characters legend{padding:0 7px;font-weight:650;font-size:12px;color:#f1d493}
.starter-characters p{font-size:11px;line-height:1.45;margin:0 0 11px;color:#d4cdb8}
.starter-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.starter-grid label{display:block;position:relative;min-width:0;cursor:pointer}
.starter-grid input{position:absolute;z-index:1;top:9px;left:9px;width:18px;height:18px;margin:0;accent-color:#397c6a}
.starter-grid label>span{display:grid;justify-items:center;gap:3px;border:2px solid #b6975f66;border-radius:10px;background:#15383e;padding:7px 10px 10px;box-shadow:inset 0 0 0 2px #fff5db08;color:#e1d6bd}
.starter-grid img{height:88px;width:88px;max-width:100%;object-fit:contain;filter:drop-shadow(0 3px 4px #061e2555)}
.starter-grid strong{font:700 15px/1.3 Georgia,serif}
.starter-grid input:checked+span{border-color:#e4be6b;background:linear-gradient(120deg,#fff5df,#dfcba1);color:#233f3b;box-shadow:inset 0 0 0 2px #fff5db77}
.starter-grid input:focus-visible+span{outline:3px solid #efd08c;outline-offset:3px}
#auth-register-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 15px}
#auth-register-form>:is(fieldset,.check-row,button){grid-column:1/-1}
@media(max-width:600px){body{background-attachment:scroll;background-position:42% center}.auth-page{padding:18px 14px}.auth-panel,.reset-card{padding:20px 18px;border-radius:21px}.auth-brand,.auth-brand-full{width:min(190px,70%)}.auth-tabs{margin:6px 0 18px;gap:4px}.auth-tabs a{font-size:12px}.auth-form{gap:12px}.auth-legal{margin-top:20px;gap:12px}.reset-page{padding:18px 14px}}
@media(max-width:540px){#auth-register-form{grid-template-columns:1fr;gap:12px}.auth-form-panel h2{font-size:27px}.starter-grid img{width:80px;height:80px}}
@media(max-height:730px) and (min-width:650px){.auth-page{align-items:flex-start;padding:12px 20px}.auth-panel{padding:16px 24px}.auth-brand,.auth-brand-full{width:175px;margin-bottom:6px}.auth-tabs{margin:4px 0 14px}.auth-form{gap:11px}.lead{margin-bottom:15px}.auth-form-panel h2{font-size:27px}.auth-legal{margin-top:18px;padding-top:13px}}
@media(orientation:portrait){.tq-auth-orientation-guard{display:none!important}html,body{overflow:auto!important}.auth-page{min-height:100svh;height:auto!important;padding:20px 12px}.auth-panel{max-height:none!important;overflow:visible!important}}
@media(prefers-reduced-motion:reduce){.auth-primary{transition:none}}
