/* RC9.19: branding only; no authentication or role behavior overrides. */
#authScreen[hidden]{display:none!important}
#authScreen:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100vh;min-height:100dvh;align-items:stretch;background:#0d2c3d}
#authScreen .auth-intro{display:flex!important;flex-direction:column;justify-content:center;align-items:stretch;min-width:0;padding:clamp(32px,5vw,90px);background:radial-gradient(ellipse at 60% 75%,#41265d,transparent 58%),linear-gradient(145deg,#24172f,#171a30)!important;overflow:visible}
#authScreen .auth-intro .entry-brand{display:block;margin:0 0 36px;overflow:visible}
#authScreen .rc912-login-brand{max-width:100%;overflow:visible}
#authScreen .rc919-default-brand{display:flex;align-items:center;gap:clamp(10px,1.5vw,22px);text-align:left!important}
#authScreen .rc919-default-brand .rc912-logo{display:block;width:clamp(86px,10vw,150px);height:auto;max-height:245px;object-fit:contain;object-position:center;flex:0 0 auto}
#authScreen .rc912-login-brand:not(.rc919-default-brand) .rc912-logo{max-width:100%;height:auto;max-height:240px;object-fit:contain}
#authScreen .rc912-logo-fallback{min-width:0;gap:5px;line-height:1.15}
#authScreen .rc912-logo-fallback[hidden]{display:none!important}
#authScreen .rc912-logo-fallback strong{font-family:'Arial Narrow','Liberation Sans Narrow',Arial,sans-serif;font-weight:800;font-size:clamp(24px,3vw,46px);letter-spacing:.055em;color:#fff;overflow-wrap:normal}
#authScreen .rc912-logo-fallback small{font-size:clamp(15px,1.5vw,23px);font-weight:700;color:#fff;letter-spacing:.04em}
#authScreen .auth-intro h1{font-size:clamp(35px,4vw,62px);line-height:1.1;color:#fff;margin:0 0 18px;max-width:580px}
#authScreen .auth-intro p{color:#c0d3e3;max-width:480px;font-size:15px;margin:0}
#authScreen .auth-quote{color:#c5b6db;margin-top:44px}
#authScreen .auth-panel{width:100%;min-width:0;min-height:0;display:flex;justify-content:center;align-items:center;padding:40px!important;background:#0d2c3d!important;color:#f8f7fc}
#authScreen .auth-card{width:min(100%,420px);min-width:0}
#authScreen .rc919-welcome{color:#39e1df!important;font-size:clamp(13px,1.25vw,19px);font-weight:800;letter-spacing:.045em;line-height:1.3}
#authScreen .rc919-welcome-compact{display:none}
#authScreen .auth-card h2{color:#fff}
#authScreen .auth-card>.muted,#authScreen .auth-card .fine{color:#c0d3e3}
#authScreen .auth-card .field{background:#15384b;color:#fff;border-color:#496979;max-width:100%;min-width:0}
#authScreen .auth-card .field::placeholder{color:#a8c0d3}
#authScreen .auth-card .switch-row{background:#141320;border-color:#343145}
#authScreen .auth-card .switch.active{background:#1b6273;color:#fff}
#authScreen .auth-card .button.primary{background:linear-gradient(90deg,#087b89,#155b92)!important;color:#fff;border:1px solid #32bcca}
#authScreen .auth-card .text-button{color:#d1baff}
/* Keep institutional branding when supplied by v9; the official mascot also appears in the common header. */
#v9BrandIcon:not(:has(img)){background:transparent url('assets/brand-rc919/logo-perrito.png') center/contain no-repeat;color:transparent;flex-shrink:0;height:62px;width:43px}
.rc919-top-logo{display:block;flex:0 0 auto;width:24px;height:40px;object-fit:contain;object-position:center}
@media(max-width:1199px){
 #authScreen:not([hidden]){grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;align-content:start}
 #authScreen .auth-intro{padding:calc(28px + env(safe-area-inset-top,0px)) 24px 22px;align-items:center;text-align:center;justify-content:flex-end}
 #authScreen .auth-intro .entry-brand{margin:0 0 16px;max-width:100%}
 #authScreen .rc919-default-brand{justify-content:center;gap:14px}
 #authScreen .rc919-default-brand .rc912-logo{width:95px;max-height:150px}
 #authScreen .rc912-logo-fallback strong{font-size:clamp(24px,4vw,38px)}
 #authScreen .rc912-logo-fallback small{font-size:clamp(14px,2vw,20px)}
 #authScreen .rc919-welcome-compact{display:block;margin:0 0 16px;font-size:18px;text-align:center}
 #authScreen .rc919-welcome-desktop,#authScreen .auth-intro p,#authScreen .auth-quote{display:none!important}
 #authScreen .auth-intro h1{font-size:clamp(29px,4.5vw,43px);margin:0;text-align:center}
 #authScreen .auth-panel{padding:22px 28px 40px!important;align-items:flex-start}
 #authScreen .auth-card{width:min(100%,520px)}
}
@media(max-width:600px){
 #authScreen .auth-intro{padding:calc(24px + env(safe-area-inset-top,0px)) 16px 14px}
 #authScreen .rc919-default-brand{gap:10px}
 #authScreen .rc919-default-brand .rc912-logo{width:clamp(58px,18vw,83px);max-height:132px}
 #authScreen .rc912-login-brand:not(.rc919-default-brand) .rc912-logo{max-height:130px}
 #authScreen .rc912-logo-fallback strong{font-size:clamp(18px,5.5vw,27px)}
 #authScreen .rc912-logo-fallback small{font-size:clamp(12px,3.5vw,15px)}
 #authScreen .rc919-welcome-compact{font-size:clamp(13px,4vw,17px);margin:0}
 #authScreen .auth-intro h1{display:none!important}
 #authScreen .auth-panel{padding:16px 20px 32px!important}
 #authScreen .auth-card h2{font-size:25px}
 .rc919-top-logo{width:21px;height:34px}
}
/* Preserve the administrator's size limit for the default mascot. */
#authScreen .rc919-default-brand .rc912-logo{max-width:min(100%,var(--rc919-logo-limit,180px))}
