body:has(input[name=password]){background:#fff!important;color:#271923!important}
body:has(input[name=password]) main{background:#fff!important}
body:has(input[name=password]) [class$="-sidebar"]{width:65%!important;flex-basis:65%!important;background:linear-gradient(145deg,#320b16,#740c25 58%,#950c30)!important;position:relative;overflow:hidden}
body:has(input[name=password]) [class$="-sidebar"]>svg{display:none!important}
#pires-hero{position:absolute;inset:0;color:#fff;padding:55px;display:flex;flex-direction:column;justify-content:center;font-family:system-ui}
#pires-hero .brand{position:absolute;top:40px;left:55px;display:flex;align-items:center;gap:14px;font-weight:800;letter-spacing:2px;font-size:13px}
#pires-hero img{width:50px;height:50px;object-fit:contain;background:white;border-radius:13px}
#pires-hero h1{font-size:clamp(30px,3.7vw,62px);line-height:1.12;letter-spacing:-2px;max-width:620px;z-index:1}
#pires-hero h1 em{font-style:normal;color:#f3a6c1}
#pires-hero p{font-size:14px;line-height:1.8;max-width:420px;z-index:1}
#pires-hero canvas{position:absolute;width:65%;height:100%;right:-15%;top:0;opacity:.45}
#pires-hero footer{position:absolute;bottom:40px;font-size:11px;letter-spacing:1.4px;color:#e0a4b5}
body:has(input[name=password]) .MuiInputBase-root{background:#fff;color:#271923;border-radius:10px}
body:has(input[name=password]) .MuiInputLabel-root{color:#740c25}
body:has(input[name=password]) .MuiOutlinedInput-notchedOutline{border-color:#b3a5ab}
body:has(input[name=password]) .MuiButton-contained{background:linear-gradient(100deg,#8d1032,#ba194b)!important;color:#fff!important;border-radius:10px;min-height:46px}
#pires-welcome{color:#271923;font-family:system-ui;margin-bottom:26px}
#pires-welcome img{width:50px;height:50px;object-fit:contain;vertical-align:middle;margin-right:12px}
#pires-welcome strong{font-size:14px;color:#740c25}
#pires-welcome h2{font-size:26px;margin:28px 0 12px}
#pires-welcome p{font-size:13px;line-height:1.7;color:#777}
@media(max-width:800px){body:has(input[name=password]) [class$="-sidebar"]{display:none!important}}
body:has(input[name=password]) form[class$="-form"]{background:#fff!important;color:#271923!important;flex:1!important;min-width:0;position:relative;display:flex;align-items:center;justify-content:center;padding:80px 40px 40px;box-sizing:border-box}
body:has(input[name=password]) form>div[class$="-container"]{width:100%!important;max-width:380px!important;display:flex;flex-direction:column;gap:22px}
body:has(input[name=password]) form [class$="-options"]{top:16px;right:16px}
body:has(input[name=password]) form .MuiIconButton-root{color:#740c25}
body:has(input[name=password]) form input{min-height:28px}
body:has(input[name=password]) form .MuiInputLabel-root{background:white;padding:0 5px}
#pires-welcome{margin:0 0 12px}
#pires-welcome h2{margin-top:30px}
@media(max-width:800px){body:has(input[name=password]) form[class$="-form"]{min-height:100vh;padding:90px 25px 40px}}

body:has(input[name=password]) main>div.MuiPaper-root{background:#fff!important;padding:0!important;flex:1!important;min-width:0!important;border-radius:0!important;box-shadow:none!important}
body:has(input[name=password]) form[class$="-form"]{width:100%!important;padding:80px 40px 65px!important}
#pires-hero{padding-top:140px;padding-bottom:110px}
#pires-hero h1{margin:20px 0 16px;font-weight:800;max-width:650px}
#pires-hero .eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:700;color:#efbdcc;z-index:1}
#pires-terminal{margin-top:28px;padding:18px 20px;max-width:420px;width:80%;background:#260b1680;border:1px solid #df97ae40;border-radius:16px;box-shadow:0 15px 35px #22071130;z-index:1;font:11px/2.2 monospace}
#pires-terminal header{display:flex;justify-content:space-between;border-bottom:1px solid #e1a2b52e;margin-bottom:10px;padding-bottom:8px;color:#e4a5b9;letter-spacing:1px}
#pires-terminal .lights{color:#f5a9c2}
#pires-terminal .line{display:flex;justify-content:space-between;color:#efdae2}
#pires-terminal .line b{color:#a4d7b0;font-weight:400}
#pires-badges{display:flex;gap:25px;margin-top:24px;font-size:11px;color:#edc7d3;z-index:1}
#pires-welcome .restricted{display:block;color:#8d1032;font-size:11px;letter-spacing:1.3px;margin-top:30px;font-weight:800}
#pires-welcome h2{margin-top:16px}
#pires-secure{font:11px/1.8 system-ui;color:#888;text-align:center;border-top:1px solid #eee;padding-top:20px;margin-top:12px}
#pires-copyright{position:absolute;bottom:22px;left:10px;right:10px;text-align:center;color:#999;font:10px system-ui}
body:has(input[name=password]) .MuiDialog-paper{background:#fff;color:#271923}
@media(max-height:800px) and (min-width:801px){#pires-hero{padding-top:115px;padding-bottom:90px}#pires-hero h1{font-size:42px}#pires-terminal{margin-top:15px}#pires-badges{margin-top:15px}}

body:has(input[name=password]) .MuiOutlinedInput-root:not(.Mui-error) .MuiOutlinedInput-notchedOutline{border-color:#b3a5ab!important;border-width:1px!important;background:transparent!important}body:has(input[name=password]) .MuiOutlinedInput-root:not(.Mui-error):hover .MuiOutlinedInput-notchedOutline{border-color:#8d1032!important;border-width:1px!important}body:has(input[name=password]) .MuiOutlinedInput-root:not(.Mui-error).Mui-focused .MuiOutlinedInput-notchedOutline{border-color:#8d1032!important;border-width:2px!important}body:has(input[name=password]) .MuiOutlinedInput-root.Mui-error .MuiOutlinedInput-notchedOutline{border-color:#c62828!important}body:has(input[name=password]) .MuiOutlinedInput-root{background-color:#fff!important}

.maplibregl-ctrl-attrib-button{display:none!important}.maplibregl-ctrl-attrib.maplibregl-compact{padding:0 5px!important;min-height:0!important}.maplibregl-ctrl-attrib-inner{font-size:10px!important}

.maplibregl-ctrl-attrib{display:none!important}

/* Login branding across desktop and mobile */
body:has(input[name=password]) form svg[class*="-image"], body:has(input[name=password]) #pires-welcome ~ svg {display:none!important}

/* Hide server setup QR from public login */
body:has(input[name=password]) form [class*="-options"] > button:has(svg) {display:none!important}
