/* Login only: no changes to combat, inventory or character-selection styles. */
body:has(.auth-screen){background:#0b1717;color:#efe7d4}
body:has(.auth-screen)::before{background:#10201e url('assets/login/fs-h5-landscape-v1.webp') center center/cover no-repeat}
body:has(.auth-screen)::after{background:linear-gradient(90deg,transparent 35%,#0613101c 52%,#07151269 100%),linear-gradient(0deg,#040c0b80,transparent 35%)}
body .auth-screen{max-width:none;width:100%;min-height:100dvh;background:#10201e url('assets/login/fs-h5-landscape-v1.webp') center center/cover no-repeat;display:grid;grid-template-columns:52% 48%;grid-template-rows:minmax(130px,.7fr) auto minmax(55px,.65fr);padding:max(30px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));gap:0;isolation:isolate}
.auth-screen .brand{grid-column:2;grid-row:1;align-self:end;justify-self:center;margin:0 0 28px;width:min(420px,100%)}
.auth-screen .brand h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(35px,3.5vw,64px);font-weight:700;letter-spacing:.055em;line-height:1.1;white-space:nowrap;background:linear-gradient(#fff6d5 15%,#e4c784 48%,#9e6c30 70%,#f3d498);background-clip:text;-webkit-background-clip:text;filter:drop-shadow(0 2px 0 #382410) drop-shadow(0 4px 12px #06120e)}
.auth-screen .brand h1 em{font-style:normal;font-size:.78em;letter-spacing:.02em}
.auth-screen .brand-kicker{display:block;color:#e0d3ae;font:600 10px/1.5 system-ui,sans-serif;letter-spacing:.42em;margin-bottom:12px;text-shadow:0 2px 8px #000}
.auth-screen .brand-rule{display:block;width:150px;height:1px;margin:17px auto 0;background:linear-gradient(90deg,transparent,#c19b56,transparent)}
.auth-screen .panel{grid-column:2;grid-row:2;justify-self:center;align-self:start;width:360px;max-width:100%;margin:0;border:1px solid #ab874a85;border-radius:3px;background:linear-gradient(145deg,#132322ed,#091311f5);padding:24px 25px 25px;box-shadow:0 16px 65px #0008,inset 0 0 0 4px #08120f66,inset 0 1px #e5d09b35;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);position:relative}
.auth-screen .panel::before,.auth-screen .panel::after{content:'';position:absolute;width:19px;height:19px;pointer-events:none;border-color:#d7b66b;border-style:solid}
.auth-screen .panel::before{top:-1px;left:-1px;border-width:2px 0 0 2px}
.auth-screen .panel::after{bottom:-1px;right:-1px;border-width:0 2px 2px 0}
.auth-screen .panel .tabs{gap:6px;margin-bottom:22px;padding-bottom:10px;border-color:#c5a76835}
.auth-screen .panel .tabs .tab{font-family:system-ui,sans-serif;color:#a3afa6;font-size:12px;min-height:32px;padding:4px 0 7px;font-weight:500}
.auth-screen .panel .tabs .tab[aria-selected=true]{color:#f3dba0;font-weight:700}
.auth-screen .panel .tabs .tab[aria-selected=true]::after{background:linear-gradient(90deg,transparent,#e8c77a,transparent);box-shadow:none;left:5%;right:5%}
.auth-screen .field{margin:0 0 14px}
.auth-screen .field input{font-size:16px;min-height:42px;scroll-margin-block:20px}
.auth-screen .notice{overflow-wrap:anywhere;white-space:normal}
.auth-screen button{touch-action:manipulation}
.auth-screen label{font-family:system-ui,sans-serif;font-size:12px;line-height:1.5;color:#c6c9b8;margin-bottom:6px}
.auth-screen input:not([type=checkbox]){height:44px;padding:10px 12px;background:#06110ed9;border:1px solid #60716288;border-radius:3px;color:#f7efda;font:400 16px/1.4 system-ui,sans-serif;box-shadow:inset 0 2px 6px #0004}
.auth-screen input::placeholder{color:#718078;font-size:13px}
.auth-screen input:focus{border-color:#dfbf79;box-shadow:0 0 0 2px #e2bc5e1c}
.auth-screen .panel .remember-login{font:400 12px/1.4 system-ui,sans-serif;color:#adb7a8;margin:4px 0 20px;min-height:22px;gap:8px}
.auth-screen .panel #rememberLogin{width:16px;height:16px;accent-color:#b69855}
.auth-screen .cta{border:1px solid #e4c37d;border-radius:3px;min-height:47px;padding:11px;color:#28180c;background:linear-gradient(120deg,#d9bb77,#f1d69b 48%,#be934e);font:750 13px/1.3 system-ui,sans-serif;letter-spacing:.12em;box-shadow:inset 0 1px #fff3cb80,0 5px 18px #0004}
.auth-screen .cta:hover{background:linear-gradient(120deg,#e7ce94,#fff0bd 48%,#d4ae6b);box-shadow:0 5px 22px #b48b492b}
.auth-screen button:focus-visible,.auth-screen input:focus-visible{outline:2px solid #f5d48b;outline-offset:3px}
.auth-screen button:disabled{cursor:wait;opacity:.55}
.auth-screen .notice{background:#471b1933;border-color:#bb6f5c66;color:#f0b6a5;font:12px/1.5 system-ui,sans-serif;margin-top:14px}
.auth-screen .auth-footer{grid-column:2;grid-row:3;align-self:start;justify-self:center;margin-top:20px;color:#b5b8a7;font:10px/1.5 system-ui,sans-serif;letter-spacing:.12em;text-align:center;text-shadow:0 2px 6px #000}
.auth-screen [hidden]{display:none!important}
@media(max-width:700px) and (orientation:portrait){
 body:has(.auth-screen)::before{background-image:url('assets/login/fs-h5-portrait-v1.webp');background-position:center top}
 body:has(.auth-screen)::after{background:linear-gradient(0deg,#030d0b66,transparent 55%)}
 body .auth-screen{background-image:url('assets/login/fs-h5-portrait-v1.webp');background-position:center top;display:flex;flex-direction:column;justify-content:flex-end;min-height:max(710px,100dvh);padding:max(26px,env(safe-area-inset-top)) 22px max(18px,env(safe-area-inset-bottom))}
 .auth-screen .brand{position:absolute;top:max(30px,env(safe-area-inset-top));left:0;width:100%;margin:0;padding:0 16px}
 .auth-screen .brand h1{font-size:clamp(30px,8.8vw,43px)}
 .auth-screen .brand-kicker{font-size:9px;margin-bottom:8px;letter-spacing:.32em}
 .auth-screen .brand-rule{margin-top:12px;width:120px}
 .auth-screen .panel{width:350px;align-self:center;padding:20px 22px 22px}
 .auth-screen .panel .tabs{margin-bottom:17px}
 .auth-screen .auth-footer{align-self:center;margin-top:15px;font-size:9px}
}
@media(max-height:600px) and (orientation:landscape){
 body .auth-screen{display:grid;grid-template-columns:52% 48%;grid-template-rows:auto auto auto;min-height:100dvh;padding:12px 24px}
 .auth-screen .brand{margin-bottom:12px}.auth-screen .brand h1{font-size:32px}.auth-screen .brand-kicker,.auth-screen .brand-rule{display:none}
 .auth-screen .panel{width:330px;padding:12px 20px 16px}.auth-screen .panel .tabs{margin-bottom:12px;padding-bottom:4px}.auth-screen .field{margin-bottom:8px}
 .auth-screen .panel .remember-login{margin-bottom:10px}.auth-screen .auth-footer{margin-top:9px}
}
