/* Phone/tablet in "Desktop site" mode: zoom the school-code / login card while typing.
   Class names are toggled by assets/auth-desktop-zoom.js. Normal phones and real
   desktops are untouched (the script only acts on touch devices showing a zoomed-out page). */

/* Keep iOS from adding its own native zoom on top of ours (it zooms inputs under 16px). */
html.auth-dm-capable .auth-card input:not([type=checkbox]):not([type=radio]):not([type=hidden]){
  font-size:max(16px,1em)!important;
}

/* Zoomed state: same card, scaled to fill the screen width and centred. */
html body.auth-dm-zoom .auth-card{
  transform-origin:50% 0!important;
  transform:translate3d(var(--dm-x,0px),0,0) scale(var(--dm-s,1.08))!important;
  transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease!important;
  box-shadow:0 6px 14px rgba(5,8,16,.32),inset 0 -1px 0 rgba(255,255,255,.8)!important;
  will-change:transform;
  position:relative;
  z-index:30;
}
/* The scaled card must not be clipped by its containers. */
html body.auth-dm-zoom .auth-main,
html body.auth-dm-zoom .auth-panel{overflow:visible!important;background:transparent!important;box-shadow:none!important;border-color:transparent!important}

@media (prefers-reduced-motion:reduce){
  html body.auth-dm-zoom .auth-card{transition:none!important}
}
