*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18212c;background:#f6f8fb}body{margin:0;min-height:100vh}.hidden{display:none!important}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(380px,.95fr) minmax(430px,1.05fr)}.auth-info{background:linear-gradient(145deg,#10233f 0%,#173d79 55%,#1d68f0 100%);color:#fff;padding:52px 7vw;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-info:before,.auth-info:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.12)}.auth-info:before{width:480px;height:480px;right:-250px;top:-110px}.auth-info:after{width:340px;height:340px;left:-170px;bottom:-170px}.brand{display:flex;align-items:center;gap:13px;position:relative;z-index:1}.brand-mark{width:45px;height:45px;border-radius:14px;display:grid;place-items:center;background:#fff;color:#1d68f0;font-weight:900;font-size:23px}.brand strong,.brand span{display:block}.brand strong{font-size:18px}.brand span{font-size:12px;color:#b7c8e4;margin-top:3px}.info-copy{margin:auto 0;max-width:650px;position:relative;z-index:1}.eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:800;color:#7d8b9b}.auth-info .eyebrow{color:#a9c6f7}.info-copy h1{font-size:clamp(38px,4.4vw,65px);line-height:1.03;letter-spacing:-.045em;margin:16px 0 22px}.info-copy p{max-width:600px;font-size:17px;line-height:1.65;color:#cad8eb;margin:0}.info-points{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;position:relative;z-index:1}.info-points>div{border-top:1px solid rgba(255,255,255,.18);padding-top:14px;display:flex;gap:11px}.info-points>div>span{font-size:11px;color:#8fb9ff;font-weight:800}.info-points p{margin:0}.info-points b,.info-points small{display:block}.info-points b{font-size:13px}.info-points small{margin-top:5px;color:#aebed4;line-height:1.4}.auth-panel{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:40px;background:#f7f9fc}.auth-card{width:min(470px,100%);background:#fff;border:1px solid #e5eaf0;border-radius:24px;padding:38px;box-shadow:0 24px 65px rgba(34,51,72,.09)}.state-block h2{font-size:29px;letter-spacing:-.025em;margin:8px 0}.state-block>p{color:#778391;line-height:1.55}.subtitle{color:#778391;line-height:1.55;margin:0 0 25px}.state-block form{display:flex;flex-direction:column;gap:15px}.state-block label{font-size:13px;font-weight:700;color:#47525e;display:flex;flex-direction:column;gap:7px}.state-block input{width:100%;border:1px solid #dce3ea;background:#fff;border-radius:11px;padding:12px 13px;outline:none}.state-block input:focus{border-color:#7aa7f7;box-shadow:0 0 0 4px rgba(29,104,240,.09)}.state-block label small{font-weight:500;color:#8a96a2}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}.password-field{position:relative}.password-field input{padding-right:82px}.show-password{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0;background:#f2f5f8;border-radius:8px;padding:7px 9px;font-size:11px;color:#53606d;cursor:pointer}.primary-btn,.secondary-btn{border:0;border-radius:11px;padding:12px 16px;font-weight:800;cursor:pointer}.primary-btn{background:#1d68f0;color:#fff;box-shadow:0 8px 18px rgba(29,104,240,.2)}.secondary-btn{background:#f1f4f7;color:#344150}.primary-btn:disabled{opacity:.55;cursor:wait}.form-error{background:#fff0f0;border:1px solid #ffd6d6;color:#a33434;padding:11px 12px;border-radius:10px;font-size:13px;line-height:1.45}.spinner{width:42px;height:42px;border:4px solid #e7edf5;border-top-color:#1d68f0;border-radius:50%;animation:spin .8s linear infinite;margin-bottom:18px}.error-icon{width:45px;height:45px;border-radius:14px;background:#fff0f0;color:#b13232;display:grid;place-items:center;font-size:24px;font-weight:900;margin-bottom:18px}footer{color:#9aa4af;font-size:12px;margin-top:18px}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-info{min-height:300px;padding:30px 28px}.info-copy{margin:50px 0 35px}.info-copy h1{font-size:38px}.info-copy p{font-size:15px}.info-points{display:none}.auth-panel{padding:26px 18px 34px}.auth-card{padding:30px}}@media(max-width:500px){.auth-info{min-height:245px;padding:24px 20px}.info-copy{margin:36px 0 10px}.info-copy h1{font-size:31px}.info-copy p{font-size:14px}.auth-panel{justify-content:flex-start}.auth-card{border-radius:19px;padding:24px 18px}.state-block h2{font-size:25px}.form-row{grid-template-columns:1fr}}
.login-mode{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0 20px}
.mode-btn{border:1px solid #dfe5eb;background:#f7f9fb;color:#596675;border-radius:10px;padding:10px 12px;font-weight:800;cursor:pointer}
.mode-btn.active,.mode-btn:hover{background:#edf4ff;border-color:#b7cff8;color:#1d68f0}
.student-search{width:100%;margin:4px 0 12px}
.student-picker{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow:auto;margin-bottom:14px}
.student-option{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;width:100%;border:1px solid #e1e7ed;background:#fff;border-radius:12px;padding:11px;text-align:left;cursor:pointer}
.student-option:hover{border-color:#9dbcf3;background:#f8fbff}
.student-option-avatar{width:38px;height:38px;border-radius:11px;background:#edf4ff;color:#1d68f0;display:grid;place-items:center;font-weight:900}
.student-option b,.student-option small{display:block}
.student-option b{font-size:13px;color:#33404c}
.student-option small{font-size:11px;color:#8b96a1;margin-top:3px}
.student-option-arrow{font-size:24px;color:#9aa5b0}
.empty-picker{padding:22px;border:1px dashed #d8e0e8;border-radius:12px;text-align:center;color:#87939f}
.full-width{width:100%}
@media(max-width:500px){
  .auth-panel{padding:18px 12px 26px}
  .auth-card{width:100%;padding:22px 16px}
  .primary-btn,.secondary-btn{min-height:48px;font-size:15px}
  .state-block input{min-height:48px;font-size:16px}
  .student-picker{max-height:45vh}
  .student-option{padding:13px 11px}
}


/* Per-school branding */
:root{--brand:#1d68f0;--brand-hover:#1559d5;--brand-soft:#edf4ff}
.primary-btn{background:var(--brand)!important}
.primary-btn:hover{background:var(--brand-hover)!important}
.brand-mark,.student-option-avatar{background:var(--brand)!important}
.eyebrow,.show-password{color:var(--brand)!important}
.mode-btn.active{color:var(--brand)!important;border-color:var(--brand)!important;background:var(--brand-soft)!important}
.student-option:hover{border-color:color-mix(in srgb,var(--brand) 45%,white)!important;background:color-mix(in srgb,var(--brand) 4%,white)!important}


/* Access recovery */
.auth-text-btn{
  border:0;
  background:transparent;
  color:var(--brand);
  padding:3px 4px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  align-self:center;
}
.auth-text-btn:hover{text-decoration:underline}
.auth-success{
  background:#eefaf3;
  border:1px solid #ccebd8;
  color:#276749;
  padding:11px 12px;
  border-radius:10px;
  font-size:13px;
  line-height:1.5;
}
.student-recovery-note{
  background:#f5f8fc;
  border:1px solid #dce5ef;
  color:#5d6b79;
  padding:11px 12px;
  border-radius:10px;
  font-size:13px;
  line-height:1.5;
}


/* UROVIA responsive auth v39 */
@media(max-width:1100px) and (min-width:701px){
  .auth-shell{
    grid-template-columns:minmax(300px,.8fr) minmax(390px,1.2fr);
  }
  .auth-info{
    padding:38px 4vw;
  }
  .info-copy h1{
    font-size:clamp(34px,4vw,48px);
  }
  .info-copy p{
    font-size:15px;
  }
  .info-points{
    grid-template-columns:1fr;
    gap:8px;
  }
  .info-points>div{
    padding-top:9px;
  }
  .auth-panel{
    padding:28px 22px;
  }
  .auth-card{
    padding:30px;
  }
}
@media(max-width:900px){
  .auth-shell{
    display:block;
    min-height:100dvh;
  }
  .auth-info{
    min-height:auto;
    padding:24px 28px;
  }
  .info-copy{
    margin:28px 0 6px;
    max-width:720px;
  }
  .info-copy h1{
    max-width:650px;
    margin:10px 0 12px;
    font-size:32px;
  }
  .info-copy p{
    font-size:14px;
    line-height:1.5;
  }
  .info-points{
    display:none;
  }
  .auth-panel{
    min-height:auto;
    padding:24px 18px max(30px,env(safe-area-inset-bottom));
  }
  .auth-card{
    width:min(560px,100%);
  }
}
@media(max-width:600px){
  .auth-info{
    padding:18px 16px;
  }
  .auth-info .brand{
    gap:10px;
  }
  .auth-info .brand-mark{
    width:40px;
    height:40px;
    border-radius:12px;
    font-size:20px;
  }
  .info-copy{
    margin:20px 0 0;
  }
  .info-copy h1{
    font-size:26px;
    line-height:1.08;
  }
  .info-copy p{
    display:none;
  }
  .auth-panel{
    padding:14px 10px max(22px,env(safe-area-inset-bottom));
  }
  .auth-card{
    padding:20px 15px;
    border-radius:18px;
  }
  .state-block h2{
    font-size:23px;
  }
  .login-mode{
    grid-template-columns:1fr;
  }
  .mode-btn,
  .primary-btn,
  .secondary-btn,
  .auth-text-btn{
    min-height:46px;
  }
  .state-block input{
    min-height:48px;
    font-size:16px;
  }
  .password-field input{
    padding-right:90px;
  }
  .student-picker{
    max-height:48dvh;
  }
  .student-option{
    min-height:58px;
  }
}
@media(max-width:380px){
  .auth-info{
    padding:14px;
  }
  .info-copy{
    display:none;
  }
  .auth-panel{
    padding-top:10px;
  }
  .auth-card{
    padding:18px 13px;
  }
}


/* Login brand contrast v45 */
.auth-info .brand-mark{
  color:#fff!important;
}
.auth-info .brand strong,
.auth-info .brand span{
  color:#fff!important;
}


/* Tablet auth layout and touch ergonomics v46 */
html,body{width:100%;max-width:100%;min-height:100%;overflow-x:clip}
body{min-height:100vh;min-height:100dvh;-webkit-text-size-adjust:100%}
.auth-shell{width:100%;max-width:100%;min-height:100vh;min-height:100dvh}
.auth-info,.auth-panel{min-width:0}
.auth-info .brand,.auth-info .info-copy,.auth-info .info-points{isolation:isolate}
@media (min-width:901px) and (max-width:1280px){
  .auth-shell{
    display:grid;
    grid-template-columns:minmax(0,46fr) minmax(0,54fr);
    align-items:stretch;
  }
  .auth-info,.auth-panel{min-height:100vh;min-height:100dvh}
  .auth-info{padding:clamp(28px,3.5vw,48px)}
  .auth-panel{padding:28px clamp(18px,3vw,40px)}
  .auth-card{width:min(490px,100%);padding:clamp(24px,2.7vw,36px)}
  .info-copy{margin:auto 0;max-width:100%}
  .info-copy h1{font-size:clamp(33px,3.9vw,53px);overflow-wrap:normal}
  .info-copy p{font-size:clamp(14px,1.4vw,17px)}
  .info-points{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .info-points>div{min-width:0;gap:6px}
  .info-points b{font-size:11px}
  .info-points small{font-size:10px}
}
@media (min-width:601px) and (max-width:900px){
  .auth-shell{display:flex;flex-direction:column;min-height:100dvh}
  .auth-info{width:100%;flex:0 0 auto;min-height:0;padding:clamp(24px,4vw,38px) clamp(22px,5vw,46px);border-radius:0}
  .info-copy{margin:24px 0 0;max-width:740px}
  .info-copy h1{font-size:clamp(30px,5.2vw,43px);line-height:1.08;margin:8px 0 12px}
  .info-copy p{display:block;font-size:14px;line-height:1.5}
  .info-points{display:none}
  .auth-panel{width:100%;flex:1 0 auto;min-height:0;padding:clamp(20px,4vw,36px) 18px max(30px,env(safe-area-inset-bottom));justify-content:flex-start}
  .auth-card{width:min(570px,100%);padding:clamp(22px,4vw,34px)}
}
@media (max-width:600px){
  .auth-shell{display:flex;flex-direction:column;min-height:100dvh}
  .auth-info,.auth-panel{width:100%;min-height:0}
  .auth-panel{flex:1 0 auto}
}
@media (max-height:720px) and (min-width:901px){
  .auth-info{padding-block:22px}
  .info-copy h1{font-size:clamp(30px,3.4vw,44px);margin:10px 0 12px}
  .auth-panel{padding-block:18px}
  .auth-card{padding:24px}
}
@media (pointer:coarse){
  .auth-shell button,.auth-shell input,.student-option{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  .auth-shell button:not(.hidden){min-height:44px}
  .mode-btn,.primary-btn,.secondary-btn{min-height:48px!important}
  .auth-text-btn{min-height:44px!important;padding:10px 12px}
  .show-password{min-width:76px;min-height:40px!important;display:grid;place-items:center;right:5px;padding:7px}
  .password-field input{padding-right:92px}
  .state-block input,.student-search{min-height:48px;font-size:16px}
  .student-option{min-height:58px}
}


/* Privacy notices v47 */
.legal-note{
  margin-top:10px;
  color:#7b8795;
  font-size:11px;
  line-height:1.45;
}
.legal-note a,
.privacy-checkbox a,
.auth-card footer a{
  color:#1d68f0;
  text-decoration:underline;
  text-underline-offset:2px;
}
.privacy-checkbox{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr)!important;
  align-items:start!important;
  gap:9px!important;
  margin:12px 0!important;
  padding:11px 12px!important;
  border:1px solid #dfe6ed!important;
  border-radius:11px!important;
  background:#f8fafc!important;
  color:#4c5d6e!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1.45!important;
  cursor:pointer;
}
.privacy-checkbox input{
  width:18px!important;
  height:18px!important;
  min-height:18px!important;
  margin:1px 0 0!important;
  accent-color:#1d68f0;
}
.auth-panel>footer{
  line-height:1.6;
}
.auth-panel>footer a{
  color:inherit;
}
