/* Worker/public authentication responsive fixes */
html,body{max-width:100%}
.auth-shell,.auth-shell *{box-sizing:border-box}
.auth-shell{width:min(100%,540px)}
.auth-shell .stack,.auth-shell .field{min-width:0}
.auth-shell .field input,.auth-shell .field select,.auth-shell .field textarea{width:100%;max-width:100%;min-width:0;font-size:16px}
.auth-shell .submit-btn{min-height:50px}
#authMsg{max-width:100%;overflow-wrap:anywhere;border-radius:10px}
@media(max-width:900px){
  header .navlinks,header .nav>.call-btn{display:none!important}
  header .mobile-toggle{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid #d8dee8;border-radius:10px;padding:0 12px;background:#fff!important}
  header .nav{width:calc(100% - 24px)!important;padding:10px 0!important;gap:10px}
  header .brand{min-width:0;max-width:calc(100% - 60px);font-size:14px!important}
  header .brand .cms-brand-logo{max-width:148px!important;max-height:44px!important;object-fit:contain}
  header .mobile-menu{display:none!important}
  header .mobile-menu.open{display:flex!important;flex-direction:column;gap:0;padding:10px 16px 14px;background:#07101f!important;border-top:1px solid rgba(212,175,55,.28);box-shadow:0 18px 32px rgba(15,23,42,.18)}
  header .mobile-menu a{color:#f8fafc!important;padding:12px 4px;border-radius:0;font-size:15px;border-bottom:1px solid rgba(255,255,255,.11);min-height:48px;display:flex;align-items:center}
  .section{min-height:auto!important;padding:28px 12px 38px!important;align-items:flex-start!important}
  .section>.wrap{width:100%!important;max-width:100%!important}
  .auth-shell{margin:0 auto!important;padding:30px 22px!important;border-radius:14px!important}
  .auth-shell h1{font-size:30px!important}
  .auth-shell>p{font-size:15px!important;margin-bottom:24px!important}
  footer{padding:42px 18px 24px!important}
  footer .foot-grid{grid-template-columns:1fr 1fr!important;gap:24px!important;margin-bottom:28px!important;padding-bottom:28px!important}
}
@media(max-width:560px){
  .auth-shell{padding:26px 18px!important}
  .auth-tabs{gap:6px!important}
  .auth-tab{font-size:13px!important;padding:10px 6px!important;min-height:46px}
  .stack{gap:16px!important}
  .field label{font-size:14px!important}
  footer .foot-grid{grid-template-columns:1fr!important;gap:22px!important}
  footer .foot-grid h4{margin-bottom:10px!important}
  footer .foot-grid ul li{margin-bottom:7px!important}
  footer .foot-bottom{padding-top:18px!important}
}
@media(max-width:390px){
  .auth-shell{padding:24px 14px!important}
  .auth-shell h1{font-size:28px!important}
  .auth-tabs[data-public="1"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .auth-tabs[data-public="1"] .auth-tab[data-auth-tab="signup"]{grid-column:1/-1}
}


/* full-site auth mobile hardening */
.auth-shell{box-sizing:border-box;min-width:0}
.auth-tabs{width:100%;min-width:0}
.auth-tab{min-width:0;overflow-wrap:normal;word-break:normal}
.auth-shell .notice,#authMsg{width:100%;box-sizing:border-box;white-space:normal}
@media(max-width:430px){
  .section{padding-top:22px!important;padding-bottom:30px!important}
  .auth-shell{width:100%!important;padding:24px 14px!important}
  .auth-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .auth-tab{padding:10px 4px!important;font-size:12px!important;line-height:1.25!important}
  .auth-tab[data-auth-tab="signup"]{white-space:normal}
}
@media(max-width:350px){
  .auth-tabs[data-public="1"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .auth-tabs[data-public="1"] .auth-tab[data-auth-tab="signup"]{grid-column:1/-1}
}
