/* Sign-in page layout: white crest panel on the left, a school photo filling the rest,
   the sign-in card resting on the photo. Colours stay the system's own (AdminLTE blue). */
@media (min-width:901px){
  .auth-photo~.portal-header,.auth-photo~.auth-shell,.auth-photo~.portal-footer{position:relative;z-index:1}
  body.auth-simple{background:#fff!important;min-height:100vh}
  .auth-photo{position:fixed;top:0;bottom:0;right:0;left:clamp(300px,23vw,460px);background:#0d2a52 center/cover no-repeat;z-index:0}
  .auth-photo~.portal-header{position:fixed;top:0;bottom:0;left:0;width:clamp(300px,23vw,460px);background:#fff;border:0;box-shadow:none;display:flex;align-items:center;justify-content:center;z-index:2}
  .auth-photo~.portal-header .portal-header-inner{flex-direction:column;align-items:center;text-align:center;gap:18px;padding:0 28px 80px;max-width:none;margin:0}
  .auth-photo~.portal-header .auth-crest{width:120px!important;height:120px!important;flex-basis:120px!important}
  .auth-photo~.portal-header strong{display:block;font-size:26px;line-height:1.2;letter-spacing:-.01em;color:#212529}
  .auth-photo~.portal-header span{display:block;margin-top:6px;font-size:15px;color:#6c757d}
  .auth-photo~.auth-shell{margin:0 0 0 clamp(300px,23vw,460px)!important;width:auto!important;max-width:none!important;min-height:100vh;display:flex!important;align-items:center;justify-content:flex-end;padding:40px clamp(28px,4vw,80px);grid-template-columns:none!important}
  .auth-photo~.auth-shell .portal-information{display:none}
  .auth-photo~.auth-shell .auth-main{width:460px;max-width:100%;margin:0;border:0;border-radius:10px;box-shadow:0 24px 60px rgba(0,0,0,.28)}
  .auth-photo~.portal-footer{position:fixed;left:0;bottom:0;width:clamp(300px,23vw,460px);background:#fff;border-top:3px solid #007bff;padding:16px 20px 20px;text-align:center;font-size:13px;line-height:1.6;z-index:3}
}
/* tablets (portrait) and phones: the photo fills the whole screen behind, white bars top and bottom, the card centred on the photo */
@media (max-width:900px){
  body.auth-simple{background:#0d2a52!important;min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
  .auth-photo{position:fixed;inset:0;background:#0d2a52 center/cover no-repeat;z-index:0}
  .auth-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,42,82,.10) 0,rgba(13,42,82,.35) 100%)}
  .auth-photo~.portal-header{position:relative;z-index:2;background:#fff;flex:0 0 auto}
  .auth-photo~.auth-shell{position:relative;z-index:1;flex:1 0 auto;display:flex!important;flex-direction:column;align-items:center;justify-content:center;grid-template-columns:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:clamp(28px,6vw,64px) clamp(16px,5vw,40px)}
  .auth-photo~.auth-shell .portal-information{display:none}
  .auth-photo~.auth-shell .auth-main{width:100%;max-width:480px;margin:0;border:0;border-radius:12px;box-shadow:0 24px 60px rgba(0,0,0,.30)}
  .auth-photo~.portal-footer{position:relative;z-index:2;flex:0 0 auto;background:#fff;border-top:3px solid #007bff;margin:0;padding:14px 16px;text-align:center;font-size:12.5px}
}
@media (max-width:600px){
  .auth-photo~.portal-header .portal-header-inner{padding:10px 16px}
  .auth-photo~.auth-shell{justify-content:flex-start;padding:28px 14px 32px}
  .auth-photo~.auth-shell .auth-main{padding:22px 18px 22px;border-radius:10px}
}
@media (max-width:600px) and (min-height:760px){
  .auth-photo~.auth-shell{justify-content:center}
}
