:root{--maroon:#8f002d;--maroon-dark:#4d0018;--rose:#fff1f5;--ink:#172033;--muted:#667085;--line:#e7eaf0;--gold:#f2b84b}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:#f5f6fa}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(420px,.92fr)}.auth-story{position:relative;overflow:hidden;padding:clamp(32px,5vw,72px);color:#fff;background:radial-gradient(circle at 85% 12%,rgba(255,255,255,.16),transparent 24%),radial-gradient(circle at 10% 90%,rgba(242,184,75,.22),transparent 26%),linear-gradient(145deg,#a9003b 0%,#780026 50%,#420014 100%);display:flex;flex-direction:column;justify-content:space-between}.auth-story:after{content:"";position:absolute;width:440px;height:440px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-210px;top:18%;box-shadow:0 0 0 55px rgba(255,255,255,.035),0 0 0 110px rgba(255,255,255,.025)}.brand-lockup{position:relative;z-index:1;display:flex;align-items:center;gap:14px}.brand-lockup img{width:68px;height:68px;object-fit:contain;background:#fff;border-radius:18px;padding:6px;box-shadow:0 12px 28px rgba(0,0,0,.18)}.brand-lockup strong,.brand-lockup span{display:block}.brand-lockup strong{font-size:clamp(20px,2vw,29px);letter-spacing:.02em;text-transform:uppercase}.brand-lockup span{opacity:.78;margin-top:4px;font-size:13px;letter-spacing:.08em;text-transform:uppercase}.story-copy{position:relative;z-index:1;max-width:660px}.security-pill{display:inline-flex;gap:8px;align-items:center;padding:8px 13px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.1);border-radius:999px;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.07em}.story-copy h1{font-size:clamp(38px,5vw,72px);line-height:1.02;margin:24px 0 18px;letter-spacing:-.045em}.story-copy p{max-width:580px;font-size:17px;line-height:1.7;color:rgba(255,255,255,.82)}.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:30px}.feature-grid span{display:flex;align-items:center;gap:10px;padding:15px 16px;border-radius:14px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);font-weight:650}.feature-grid i{color:var(--gold)}.auth-story>small{position:relative;z-index:1;color:rgba(255,255,255,.64)}.auth-panel{display:flex;align-items:center;justify-content:center;padding:38px;background:radial-gradient(circle at 100% 0,#fde9ef,transparent 35%),#f7f8fb}.auth-card{width:min(100%,480px);padding:38px;background:#fff;border:1px solid rgba(143,0,45,.09);border-radius:28px;box-shadow:0 26px 70px rgba(45,24,33,.12)}.mobile-brand{display:none}.portal-icon{width:58px;height:58px;border-radius:17px;background:linear-gradient(145deg,#a9003b,#690021);color:#fff;display:grid;place-items:center;font-size:25px;box-shadow:0 14px 28px rgba(143,0,45,.23);margin-bottom:20px}.eyebrow{color:var(--maroon);font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.auth-card h2{font-size:30px;letter-spacing:-.03em;margin:6px 0}.intro{margin:0 0 24px;color:var(--muted)}.field-label{display:block;font-size:13px;font-weight:750;margin:16px 0 7px}.input-wrap{position:relative}.input-wrap>i{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#98a2b3}.input-wrap input{width:100%;height:52px;border:1.5px solid var(--line);border-radius:13px;background:#fbfcfe;padding:0 48px 0 43px;font-size:15px;outline:none;transition:.18s}.input-wrap input:focus{border-color:var(--maroon);background:#fff;box-shadow:0 0 0 4px rgba(143,0,45,.08)}.eye{position:absolute;right:9px;top:50%;transform:translateY(-50%);border:0;background:transparent;width:36px;height:36px;color:#7b8494;cursor:pointer}.form-row{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:17px 0;font-size:13px}.form-row a{color:var(--maroon);font-weight:750;text-decoration:none}.remember{display:flex;align-items:center;gap:8px;color:#505968}.remember input{accent-color:var(--maroon)}.login-button{width:100%;height:53px;border:0;border-radius:14px;background:linear-gradient(110deg,#a9003b,#760025);color:#fff;font-size:15px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:12px;cursor:pointer;box-shadow:0 15px 28px rgba(143,0,45,.22);transition:.18s}.login-button:hover{transform:translateY(-2px);box-shadow:0 19px 34px rgba(143,0,45,.28)}.auth-alert{border-radius:12px;padding:11px 13px;margin:13px 0;font-size:13px;line-height:1.45}.auth-alert.warning{background:#fff7dc;color:#815b00}.auth-alert.danger{background:#ffe9ef;color:#8a002b}.help,.app-download{text-align:center;font-size:12px;color:var(--muted)}.divider{display:flex;align-items:center;gap:12px;color:#98a2b3;font-size:11px;text-transform:uppercase;margin:20px 0}.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}.portal-switch{display:grid;grid-template-columns:30px 1fr 20px;align-items:center;gap:9px;border:1px solid #eed7df;background:#fff8fa;color:var(--ink);padding:13px 15px;border-radius:13px;text-decoration:none;font-weight:750}.portal-switch>i:first-child{color:var(--maroon);font-size:18px}.portal-switch>i:last-child{color:#98a2b3}.app-download{display:block;margin-top:18px;text-decoration:none;color:var(--maroon);font-weight:750}.app-download i{margin-right:6px}.mobile-brand{margin-bottom:22px}
@media(max-width:900px),(pointer:coarse) and (max-width:1200px){.auth-shell{grid-template-columns:1fr}.auth-story{display:none}.auth-panel{min-height:100vh;padding:24px}.mobile-brand{display:flex;color:var(--ink);width:min(100%,480px)}.mobile-brand img{width:58px;height:58px}.mobile-brand strong{font-size:19px}.auth-panel{flex-direction:column}.auth-card{padding:30px}}
@media(max-width:520px){.auth-panel{padding:18px 14px 28px;justify-content:flex-start;background:linear-gradient(180deg,#780026 0 170px,#f5f6fa 170px)}.mobile-brand{color:#fff;margin:14px 0 26px}.mobile-brand span{color:rgba(255,255,255,.8)}.auth-card{border-radius:24px;padding:27px 21px}.auth-card h2{font-size:26px}.feature-grid{grid-template-columns:1fr}.portal-icon{width:52px;height:52px}}

/* Visible, dependency-free CAPTCHA */
.captcha-row{display:grid;grid-template-columns:126px 44px minmax(0,1fr);gap:8px;align-items:center}.captcha-code{height:48px;min-width:0;padding:0 8px;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;text-align:center;color:#fff;background:repeating-linear-gradient(135deg,#720022 0,#720022 9px,#980033 9px,#980033 18px);font:800 18px/1.15 ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:.025em;text-shadow:1px 1px 0 rgba(0,0,0,.25);user-select:none}.captcha-refresh{height:48px;padding:0;border:1.5px solid #ead5dc;border-radius:12px;background:#fff7fa;color:var(--maroon);font-size:19px;cursor:pointer;display:grid;place-items:center;line-height:1}.captcha-refresh:hover{background:#fce8ef}.captcha-refresh:disabled{opacity:.55}.captcha-row input{min-width:0;height:48px;border:1.5px solid var(--line);border-radius:12px;background:#fbfcfe;padding:0 12px;text-align:center;text-transform:uppercase;font-size:15px;font-weight:700;letter-spacing:.06em;outline:none}.captcha-row input:focus{border-color:var(--maroon);box-shadow:0 0 0 4px rgba(143,0,45,.08)}

/* The login screen is an app-style single viewport: no page or panel scrolling. */
html,body{height:100%;height:100dvh;overflow:hidden}.auth-shell{height:100%;height:100dvh;min-height:0;overflow:hidden}.auth-story,.auth-panel{height:100%;height:100dvh;min-height:0;overflow:hidden}.brand-lockup img{object-fit:contain}

/* Compact laptop layout, including browsers whose toolbar leaves only ~600px. */
@media (min-width:901px) and (max-height:850px){.auth-story{padding:24px 4.1vw}.brand-lockup img{width:54px;height:54px;border-radius:14px}.brand-lockup strong{font-size:22px}.brand-lockup span{font-size:11px}.story-copy h1{font-size:46px;margin:13px 0 8px;line-height:1.04}.story-copy p{font-size:14px;line-height:1.45;margin:0}.security-pill{padding:5px 10px;font-size:10px}.feature-grid{margin-top:15px;gap:8px}.feature-grid span{padding:9px 12px;font-size:14px}.auth-story>small{font-size:10px}.auth-panel{padding:8px 28px;align-items:center}.auth-card{padding:14px 28px;border-radius:21px;margin:0;max-height:calc(100dvh - 16px)}.portal-icon{width:40px;height:40px;border-radius:12px;font-size:18px;margin-bottom:6px}.eyebrow{font-size:10px}.auth-card h2{font-size:23px;margin:2px 0}.intro{font-size:12px;margin:0 0 7px}.auth-alert{padding:7px 10px;margin:6px 0;font-size:11px}.field-label{font-size:11px;margin:6px 0 3px}.input-wrap input{height:40px;border-radius:10px;font-size:13px}.input-wrap>i{left:13px}.captcha-row{grid-template-columns:126px 44px minmax(0,1fr);gap:7px}.captcha-code,.captcha-refresh,.captcha-row input{height:39px;border-radius:10px}.captcha-code{font-size:16px;letter-spacing:.015em}.captcha-row input{font-size:12px}.form-row{margin:7px 0;font-size:11px}.login-button{height:42px;border-radius:11px;font-size:13px}.help{font-size:10px;margin:7px 0}.divider{margin:6px 0;font-size:9px}.portal-switch{padding:7px 12px;border-radius:10px;font-size:12px}.portal-switch>i:first-child{font-size:15px}.app-download{font-size:10px;margin-top:6px}}

/* Phone/app mode remains inside the dynamic viewport without vertical scrolling. */
@media(max-width:900px),(pointer:coarse) and (max-width:1200px){.auth-panel{height:100%;height:100dvh;overflow:hidden;padding:10px 14px 12px;justify-content:flex-start;background:linear-gradient(180deg,#780026 0 112px,#f5f6fa 112px)}.mobile-brand{flex:0 0 auto;width:min(100%,480px);height:78px;margin:0 0 8px;color:#fff}.mobile-brand img{width:50px;height:50px;border-radius:13px}.mobile-brand strong{font-size:18px}.mobile-brand span{font-size:10px;color:rgba(255,255,255,.78)}.auth-card{flex:0 1 auto;width:min(100%,480px);max-height:calc(100dvh - 108px);overflow:hidden;border-radius:21px;padding:15px 20px;margin:0}.portal-icon{width:40px;height:40px;border-radius:12px;font-size:18px;margin-bottom:7px}.eyebrow{font-size:10px}.auth-card h2{font-size:23px;margin:2px 0}.intro{font-size:12px;margin-bottom:8px}.field-label{font-size:11px;margin:7px 0 3px}.input-wrap input{height:41px;font-size:13px;border-radius:10px}.captcha-row{grid-template-columns:108px 42px minmax(0,1fr);gap:7px}.captcha-code,.captcha-refresh,.captcha-row input{height:40px;border-radius:10px}.captcha-code{font-size:17px}.captcha-row input{font-size:12px;padding:0 9px}.form-row{margin:8px 0;font-size:11px}.login-button{height:43px;border-radius:11px;font-size:13px}.help{font-size:10px;margin:7px 0}.divider{margin:7px 0;font-size:9px}.portal-switch{padding:8px 11px;border-radius:10px;font-size:12px}.app-download{font-size:10px;margin-top:7px}.auth-alert{padding:7px 10px;margin:6px 0;font-size:11px}}

/* Short phone screens: preserve every control without page scrolling. */
@media (pointer:coarse) and (max-width:1200px) and (max-height:760px){.mobile-brand{height:62px;margin-bottom:4px}.mobile-brand img{width:42px;height:42px}.auth-card{max-height:calc(100dvh - 78px);padding:10px 16px}.portal-icon,.intro{display:none}.field-label{margin-top:5px}.input-wrap input{height:37px}.captcha-code,.captcha-refresh,.captcha-row input{height:36px}.form-row{margin:5px 0}.login-button{height:38px}.help{display:none}.divider{margin:4px 0}.portal-switch{padding:6px 10px}.app-download{margin-top:4px}}

@media(max-width:520px) and (max-height:720px){.mobile-brand{height:65px;margin-bottom:5px}.mobile-brand img{width:44px;height:44px}.auth-card{max-height:calc(100dvh - 82px);padding:11px 17px}.portal-icon{display:none}.intro{display:none}.field-label{margin-top:5px}.input-wrap input{height:38px}.captcha-code,.captcha-refresh,.captcha-row input{height:37px}.login-button{height:39px}.help{display:none}.divider{margin:5px 0}.portal-switch{padding:6px 10px}.app-download{margin-top:4px}}
.login-method-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:5px;background:#f3f4f6;border-radius:12px;margin:0 0 18px}.method-tab{border:0;border-radius:9px;padding:10px 8px;background:transparent;color:#64748b;font-weight:700;cursor:pointer}.method-tab.active{background:#fff;color:#8b0028;box-shadow:0 3px 10px rgba(15,23,42,.1)}.auth-alert.success{background:#dcfce7;color:#166534}.portal-switch:disabled{opacity:.55;cursor:not-allowed}.auth-card>.help{display:block;text-align:center;margin-top:14px;color:#8b0028;text-decoration:none;font-weight:700}

/* Native app-style Student Login — independent of phone height/brand */
@media(max-width:900px){
  html:has(body.student-login-app),html:has(body.student-login-app) body{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;background:#f5f6f9}
  body.student-login-app .auth-shell{display:block!important;width:100%!important;min-height:100dvh!important;height:auto!important;overflow:visible!important;background:#f5f6f9}
  body.student-login-app .auth-story{display:none!important}
  body.student-login-app .auth-panel{display:block!important;width:100%!important;min-height:100dvh!important;height:auto!important;overflow:visible!important;padding:0!important;background:linear-gradient(145deg,#9c0034 0,#730024 62%,#57001b 100%)!important}
  body.student-login-app .mobile-brand{display:flex!important;width:100%!important;height:176px!important;margin:0!important;padding:max(24px,env(safe-area-inset-top)) 24px 58px!important;align-items:flex-start!important;color:#fff!important;background:radial-gradient(circle at 90% 10%,rgba(255,255,255,.16),transparent 28%)}
  body.student-login-app .mobile-brand img{width:62px!important;height:62px!important;min-width:62px!important;max-width:62px!important;border-radius:50%!important;padding:3px!important;background:#fff!important;box-shadow:0 10px 24px rgba(0,0,0,.22)}
  body.student-login-app .mobile-brand strong{font-size:22px!important;line-height:1.2!important;text-transform:none!important;color:#fff!important}
  body.student-login-app .mobile-brand span{font-size:10px!important;color:rgba(255,255,255,.76)!important;letter-spacing:.12em!important;margin-top:5px!important}
  body.student-login-app .auth-card{position:relative!important;width:100%!important;max-width:none!important;min-height:calc(100dvh - 142px)!important;max-height:none!important;margin:-34px 0 0!important;padding:30px 22px calc(28px + env(safe-area-inset-bottom))!important;border:0!important;border-radius:30px 30px 0 0!important;overflow:visible!important;box-shadow:0 -14px 34px rgba(56,0,19,.18)!important;background:#fff!important}
  body.student-login-app .portal-icon{position:absolute!important;right:24px!important;top:-28px!important;width:58px!important;height:58px!important;border:4px solid #fff!important;border-radius:18px!important;margin:0!important;font-size:23px!important;box-shadow:0 12px 25px rgba(113,0,37,.28)!important}
  body.student-login-app .eyebrow{font-size:10px!important;letter-spacing:.12em!important}
  body.student-login-app .auth-card h2{font-size:27px!important;margin:5px 0 7px!important}
  body.student-login-app .intro{font-size:13px!important;line-height:1.5!important;margin:0 0 19px!important;max-width:310px}
  body.student-login-app .login-method-tabs{margin:0 0 20px!important;padding:5px!important;border-radius:14px!important;gap:5px!important}.student-login-app .method-tab{min-height:43px!important;font-size:12px!important}
  body.student-login-app .field-label{font-size:12px!important;margin:14px 0 6px!important}
  body.student-login-app .input-wrap input{height:52px!important;border-radius:13px!important;font-size:14px!important;background:#fafbfc!important}
  body.student-login-app .captcha-row{grid-template-columns:126px 44px minmax(0,1fr)!important;gap:8px!important}.student-login-app .captcha-code,.student-login-app .captcha-refresh,.student-login-app .captcha-row input{height:48px!important;border-radius:12px!important}.student-login-app .captcha-code{font-size:16px!important;letter-spacing:0!important}.student-login-app .captcha-row input{text-transform:none!important;letter-spacing:0!important}
  body.student-login-app .form-row{margin:16px 0!important;font-size:12px!important}.student-login-app .login-button{height:52px!important;border-radius:14px!important;font-size:14px!important}
  body.student-login-app .divider{margin:18px 0 13px!important}.student-login-app .portal-switch{min-height:48px!important;padding:11px 14px!important;border-radius:13px!important;font-size:12px!important}
  body.student-login-app .app-download{margin-top:15px!important;font-size:12px!important}.student-login-app .help{display:block!important;font-size:11px!important;margin:12px 0!important}
}
@media(max-width:380px){body.student-login-app .mobile-brand{height:160px!important;padding-left:18px!important;padding-right:18px!important}.student-login-app .auth-card{padding-left:17px!important;padding-right:17px!important}.student-login-app .captcha-row{grid-template-columns:110px 40px minmax(0,1fr)!important;gap:6px!important}.student-login-app .captcha-code{font-size:14px!important}.student-login-app .form-row{gap:7px!important;font-size:10px!important}}
@media(min-width:600px) and (max-width:900px){body.student-login-app .auth-panel{display:flex!important;flex-direction:column!important;align-items:center!important}.student-login-app .mobile-brand,.student-login-app .auth-card{max-width:560px!important}.student-login-app .auth-card{border-radius:30px!important;margin-bottom:30px!important;min-height:auto!important}}
