/* Curelab authentication — standalone, visually aligned with Student Portal. */
:root{--auth-teal:#0f766e;--auth-deep:#103e3b;--auth-line:#e1eae7;--auth-muted:#718983}
body:has(.auth-shell){margin:0;background:#f8fafb;color:#153a36}
body:has(.auth-shell) .icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
.auth-shell{display:grid;grid-template-columns:minmax(380px,46%) minmax(0,1fr);min-height:100vh;min-height:100dvh}
.auth-icon{width:20px;height:20px;display:inline-block;stroke:currentColor;fill:none;stroke-width:1.85;flex-shrink:0;vertical-align:middle}
.auth-showcase{position:sticky;top:0;height:100vh;height:100dvh;background:linear-gradient(133deg,#113f3c 0%,#10655e 46%,#0f8878 100%);color:#fff;overflow:hidden;isolation:isolate}
.auth-showcase::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.15;background-image:radial-gradient(#d8fff0 .85px,transparent .85px);background-size:25px 25px;mask-image:linear-gradient(to top,transparent,#000 75%);z-index:0}
.auth-showcase-inner{max-width:720px;margin:0 auto;position:relative;z-index:2;display:flex;flex-direction:column;height:100%;padding:clamp(30px,4.1vw,65px)}
.auth-brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-weight:800;color:#153f38}
.auth-brand:hover{color:#0d7469}.auth-brand-light,.auth-brand-light:hover{color:#fff}
.auth-logo{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#117c6e;color:#fff;box-shadow:0 7px 16px #002f2924}
.auth-brand-light .auth-logo{background:#ffffff24;border:1px solid #ffffff38}
.auth-logo .auth-icon{width:25px;height:25px;stroke-width:2.2}
.auth-brand-name{font-size:28px;letter-spacing:-1.5px;line-height:1}.auth-brand-dot{color:#5ae6c3}
.auth-showcase-content{margin:auto 0;padding:20px 0 10px;max-width:560px}
.auth-eyebrow{display:inline-flex;align-items:center;gap:10px;color:#b9f7e6;letter-spacing:2.1px;font-size:11px;font-weight:800}
.auth-eyebrow-dot{width:7px;height:7px;background:#76f5cc;border-radius:50%;box-shadow:0 0 0 5px #ffffff13}
.auth-showcase h1{color:#fff;font-size:clamp(34px,3.6vw,55px);letter-spacing:-1.9px;line-height:1.17;margin:23px 0 20px;font-weight:800}
.auth-showcase h1 em{font-style:normal;color:#a4efda}
.auth-showcase-content>p{max-width:440px;color:#d0eee8;font-size:14px;line-height:1.85}
.auth-feature-list{display:grid;gap:17px;margin-top:39px}
.auth-feature{display:flex;align-items:center;gap:15px}
.auth-feature-icon{width:45px;height:45px;display:grid;place-items:center;background:#ffffff18;border:1px solid #ffffff24;border-radius:13px;color:#d4fff1}
.auth-feature strong{font-size:13px;color:#fff;display:block;margin-bottom:4px}
.auth-feature small{font-size:12px;color:#c8e7e1;display:block;line-height:1.5}
.auth-showcase-footer{display:flex;gap:13px;align-items:center;font-size:10px;color:#b8ded6;line-height:1.5}
.auth-showcase-line{height:1px;width:26px;flex:none;background:#a0e5d6}
.auth-glow{position:absolute;border-radius:50%;filter:blur(1px);pointer-events:none;z-index:0}
.auth-glow-top{width:490px;height:490px;right:-215px;top:-225px;background:radial-gradient(circle,#91ffe527,transparent 68%)}
.auth-glow-bottom{width:550px;height:550px;left:-260px;bottom:-220px;background:radial-gradient(circle,#cefff114,transparent 70%)}
.auth-wave{position:absolute;pointer-events:none;z-index:1;width:110%;height:220px;bottom:-185px;left:-10%;border-radius:50% 50% 0 0;background:#eaffed0c;animation:auth-wave 21s ease-in-out infinite alternate}
.auth-wave-two{left:22%;bottom:-190px;background:#d0fff512;animation-duration:17s;animation-direction:alternate-reverse}
.auth-visual{position:absolute;z-index:1;right:-35px;top:24%;width:260px;height:260px;display:grid;place-items:center;pointer-events:none;opacity:.55}
.auth-orbit{position:absolute;border-radius:50%;border:1px solid #ffffff1e}
.auth-orbit-outer{inset:0;box-shadow:0 0 0 24px #ffffff07,0 0 0 54px #ffffff05}
.auth-orbit-inner{inset:54px;border-color:#ffffff2e}
.auth-visual-icon{width:107px;height:107px;display:grid;place-items:center;border:1px solid #ffffff3d;background:#ffffff1b;border-radius:26px;transform:rotate(10deg);animation:auth-float 7s ease-in-out infinite}
.auth-visual-icon .auth-icon{width:58px;height:58px}
.auth-visual-spark{position:absolute;color:#d7fff6;font-size:21px}
.auth-visual-spark-a{top:30px;left:28px}.auth-visual-spark-b{right:25px;bottom:26px}
.auth-main{min-width:0;min-height:100vh;display:flex;flex-direction:column;background:#fbfcfd}
.auth-mobile-brand{display:none}
.auth-main-inner{width:100%;max-width:590px;margin:auto;padding:60px clamp(30px,5.1vw,78px);animation:auth-enter .5s ease both}
.auth-main-inner.auth-register{max-width:820px;padding-block:68px}
.auth-heading{margin-bottom:35px}
.auth-section-label{display:inline-flex;align-items:center;gap:9px;color:#0f8272;font-size:10px;font-weight:850;letter-spacing:1.65px}
.auth-section-line{width:23px;height:2px;background:#14a48d;border-radius:4px}
.auth-heading h2{font-size:clamp(27px,2.7vw,38px);letter-spacing:-1.2px;line-height:1.2;color:#163d37;margin:16px 0 12px;font-weight:800}
.auth-heading-accent{color:#0f9380}
.auth-heading p{font-size:13px;color:#788b87;line-height:1.8;max-width:470px;margin:0}
.auth-form{display:grid;gap:22px}
.auth-field{min-width:0}
.auth-field label:not(.auth-checkline){display:block;font-weight:700;font-size:12px;color:#284943;margin:0 0 9px}
.auth-required{color:#d65767}
body:has(.auth-shell) .auth-field input:not([type=checkbox]),body:has(.auth-shell) .auth-field select,body:has(.auth-shell) .auth-field textarea{display:block;width:100%;min-width:0;min-height:49px;padding:13px 15px;border:1px solid #dce7e3;border-radius:11px;background:#fff;outline:none;font:inherit;font-size:13px;color:#173d37;box-shadow:0 3px 12px #173a3105;transition:border-color .2s,box-shadow .2s,background-color .2s}
body:has(.auth-shell) .auth-field input:focus,body:has(.auth-shell) .auth-field select:focus,body:has(.auth-shell) .auth-field textarea:focus{border-color:#1a9e8b;box-shadow:0 0 0 4px #16a08518}
body:has(.auth-shell) .auth-field input::placeholder{color:#a3b2ae}
body:has(.auth-shell) .auth-field textarea{resize:vertical;min-height:76px}
.auth-input-wrap{position:relative;display:flex;align-items:center}
.auth-input-leading{position:absolute;left:16px;z-index:1;font-size:17px;font-weight:700;color:#8da39d}
body:has(.auth-shell) .auth-input-wrap:has(.auth-input-leading) input{padding-left:43px}
body:has(.auth-shell) .auth-password-wrap input{padding-right:110px}
.auth-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:auto!important;padding:9px 13px!important;margin:0!important;border:0!important;border-radius:8px!important;background:#eef7f4!important;color:#0b7566!important;font-size:11px!important;font-weight:750!important;cursor:pointer}
.auth-password-toggle:hover{background:#dcefe8!important}
.auth-password-toggle:focus-visible{outline:2px solid #087b6a;outline-offset:2px}
.auth-submit{display:flex!important;align-items:center;justify-content:center;gap:11px;background:linear-gradient(100deg,#0e766b,#129a87)!important;color:white!important;border:0!important;border-radius:11px!important;min-height:51px;margin-top:6px!important;font-size:13px!important;font-weight:800!important;cursor:pointer;box-shadow:0 10px 20px #07867520;transition:transform .2s,box-shadow .2s,filter .2s}
.auth-submit:hover{transform:translateY(-2px);box-shadow:0 14px 28px #07867530;filter:brightness(1.04)}
.auth-submit:focus-visible{outline:3px solid #70dbc4;outline-offset:3px}
.auth-submit .auth-icon{width:17px;height:17px}
.auth-switch{margin:30px 0 0;text-align:center;font-size:13px;color:#768c87}
.auth-switch a{color:#0a8273;text-decoration:none;font-weight:800}
.auth-switch a:hover{text-decoration:underline}
.auth-bottom-note{display:flex;align-items:center;justify-content:center;gap:7px;color:#8da39e;font-size:11px;margin-top:25px;text-align:center;line-height:1.5}
.auth-bottom-note .auth-icon{width:15px;height:15px;color:#2eaf91}
.auth-main-footer{display:flex;justify-content:space-between;gap:14px;padding:20px 36px;font-size:10px;color:#a1b1ac}
.auth-alert{display:flex;gap:10px;align-items:flex-start;background:#fff2f1;border:1px solid #fad5d1;color:#a23436;padding:12px 15px;border-radius:11px;font-size:12px;margin-bottom:24px}
.auth-alert .auth-icon{width:18px;height:18px}
.auth-alert ul,.auth-field-errors ul{margin:0;padding-left:18px}
.auth-field-errors{margin-top:7px;color:#af3c4e;font-size:11px;line-height:1.5}
.auth-field-help{margin-top:7px;color:#819790;font-size:11px;line-height:1.6}
.auth-field-help ul{margin:5px 0 0;padding-left:18px}
.auth-field-help li{margin-top:3px}
.auth-fieldset{border:0;min-width:0;margin:0;padding:0 0 3px}
.auth-fieldset legend{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:800;color:#20443e;margin-bottom:20px;padding:0}
.auth-step-number{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e5f4ed;color:#087968;font-size:11px;letter-spacing:.3px}
.auth-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
.auth-span-2{grid-column:1/-1}
.auth-register-form{gap:34px}
.auth-checkline{display:flex;align-items:flex-start;gap:11px;font-size:12px;color:#4c6660;font-weight:500;line-height:1.7;cursor:pointer}
body:has(.auth-shell) .auth-checkline input[type=checkbox]{width:18px;height:18px;flex:none;margin:1px 0 0;accent-color:#0e8b76;cursor:pointer}
.auth-register-form .auth-submit{margin-top:-5px!important}
@keyframes auth-wave{from{transform:translateX(-3%) rotate(-2deg)}to{transform:translateX(3%) translateY(-11px) rotate(2deg)}}
@keyframes auth-float{0%,100%{transform:translateY(0) rotate(10deg)}50%{transform:translateY(-11px) rotate(6deg)}}
@keyframes auth-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1250px){.auth-showcase-inner{padding:38px}.auth-showcase h1{font-size:39px}.auth-visual{opacity:.32;right:-110px}.auth-main-inner{padding:50px 44px}}
@media(max-width:960px){.auth-shell{grid-template-columns:minmax(290px,39%) minmax(0,1fr)}.auth-showcase-inner{padding:32px}.auth-showcase h1{font-size:32px}.auth-feature-list{gap:13px}.auth-showcase-content>p{font-size:12px}.auth-visual{display:none}.auth-main-inner{padding:35px 28px}.auth-heading h2{font-size:29px}.auth-main-footer{font-size:9px;padding:18px 24px}}
@media(max-width:760px){.auth-shell{display:block}.auth-showcase{display:none}.auth-main{min-height:100vh;min-height:100dvh}.auth-mobile-brand{display:block;padding:28px 24px 0}.auth-mobile-brand .auth-brand-name{font-size:25px}.auth-mobile-brand .auth-logo{width:39px;height:39px}.auth-main-inner,.auth-main-inner.auth-register{margin:auto;width:100%;max-width:610px;padding:34px 26px 40px}.auth-heading{margin-bottom:25px}.auth-main-footer{padding:19px 24px}.auth-main-inner.auth-register{padding-top:30px}}
@media(max-width:460px){.auth-mobile-brand{padding:23px 19px 0}.auth-main-inner,.auth-main-inner.auth-register{padding:30px 19px 36px}.auth-heading h2{font-size:28px}.auth-form-grid{grid-template-columns:1fr;gap:19px}.auth-span-2{grid-column:auto}.auth-showcase-content{display:none}.auth-register-form{gap:29px}.auth-main-footer span:last-child{display:none}.auth-bottom-note{align-items:flex-start}.auth-bottom-note .auth-icon{margin-top:1px}.auth-submit{min-height:50px}}
@media(prefers-reduced-motion:reduce){.auth-wave,.auth-visual-icon,.auth-main-inner{animation:none!important}.auth-submit,body:has(.auth-shell) .auth-field input,body:has(.auth-shell) .auth-field select,body:has(.auth-shell) .auth-field textarea{transition:none!important}.auth-submit:hover{transform:none}}


/* Reference-led refinement: a centered, rounded authentication card. */
body:has(.auth-page){background:#edf8f6}
.auth-page{
  min-height:100vh;
  padding:clamp(20px,5vw,68px) 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(ellipse 48% 55% at 6% 13%,#cde9e5 0%,transparent 75%),
    radial-gradient(ellipse 54% 50% at 94% 88%,#d6efea 0%,transparent 77%),
    #f0f9f7;
}
.auth-shell{
  width:min(100%,1080px);
  min-height:610px;
  grid-template-columns:minmax(320px,41%) minmax(0,1fr);
  border-radius:25px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 22px 75px rgba(18,86,78,.13);
}
.auth-showcase{
  position:relative;
  min-height:100%;
  height:auto;
  background:linear-gradient(150deg,#0a807b 0%,#08746f 42%,#095a54 100%);
}
.auth-showcase::before{opacity:.035}
.auth-showcase-inner{padding:42px 38px}
.auth-showcase-content{padding:32px 0;max-width:400px}
.auth-showcase h1{font-size:clamp(29px,3vw,40px);letter-spacing:-1.1px;margin:22px 0 18px}
.auth-showcase-content>p{max-width:340px;font-size:13px;line-height:1.9}
.auth-brand-name{font-size:26px;letter-spacing:-.9px}
.auth-brand-dot{color:#a3f5da}
.auth-feature-list{gap:21px;margin-top:32px}
.auth-feature-icon{width:39px;height:39px;border-radius:11px}
.auth-feature-icon .auth-icon{width:20px;height:20px}
.auth-feature strong{font-size:12px}
.auth-feature small{font-size:11px;color:#b8e4dc}
.auth-showcase-footer{font-size:10px}
.auth-visual{right:-135px;top:1%;opacity:.12}
.auth-main{background:#fff;min-height:0}
.auth-main-inner,.auth-main-inner.auth-register{max-width:none;margin:auto;padding:42px clamp(28px,4vw,52px)}
.auth-main-footer{padding:15px 36px 21px}
.auth-heading h2{font-size:clamp(25px,2.5vw,32px);margin:14px 0 8px}
.auth-heading p{font-size:12px}
.auth-login .auth-heading{margin-bottom:31px}
.auth-login .auth-form{gap:18px}
.auth-login .auth-switch{margin-top:19px}
.auth-login .auth-bottom-note{margin-top:24px}
.auth-switch-divider{display:flex;align-items:center;gap:14px;margin-top:28px;color:#a0b0ab;font-size:11px;text-align:center}
.auth-switch-divider:before,.auth-switch-divider:after{content:"";flex:1;height:1px;background:#e5efeb}
.auth-login .auth-switch a{display:inline-flex;gap:7px;align-items:center;font-size:13px}
.auth-login .auth-switch a .auth-icon{width:14px;height:14px}
.auth-login .auth-submit{margin-top:5px!important}
.auth-fieldset legend{margin-bottom:18px}
.auth-register-form{gap:29px}
.auth-register .auth-heading{margin-bottom:30px}
.auth-register .auth-form-grid{gap:16px}
.auth-register .auth-fieldset{border-bottom:1px solid #edf2ef;padding-bottom:24px}
.auth-register .auth-fieldset:last-of-type{border-bottom:0;padding-bottom:0}
.auth-register .auth-fieldset .auth-field label:not(.auth-checkline){margin-bottom:7px}
.auth-register .auth-field input:not([type=checkbox]),
.auth-register .auth-field select{min-height:46px}
.auth-register .auth-field textarea{min-height:73px}
.auth-feature-list,.auth-showcase-content,.auth-main-inner{position:relative;z-index:2}
body:has(.auth-register) .auth-page{align-items:flex-start}
body:has(.auth-register) .auth-shell{min-height:880px}
body:has(.auth-register) .auth-showcase-inner{min-height:880px}
@media(max-width:960px){
  .auth-page{padding:20px}
  .auth-shell{grid-template-columns:minmax(235px,37%) minmax(0,1fr)}
  .auth-showcase-inner{padding:32px 24px}
  .auth-showcase h1{font-size:30px}
  .auth-main-inner,.auth-main-inner.auth-register{padding:36px 27px}
  .auth-feature-list{gap:15px}
}
@media(max-width:760px){
  .auth-page{padding:0;display:block;background:#fff}
  .auth-shell{display:block;border-radius:0;box-shadow:none;min-height:100dvh}
  .auth-main{min-height:100dvh}
  .auth-showcase{display:none}
  body:has(.auth-register) .auth-shell{min-height:100dvh}
  .auth-main-inner,.auth-main-inner.auth-register{max-width:620px;margin:auto;padding:32px 25px 42px}
  .auth-main-footer{padding:17px 25px 24px}
}
@media(max-width:480px){
  .auth-main-inner,.auth-main-inner.auth-register{padding:30px 19px 39px}
  .auth-register .auth-form-grid{grid-template-columns:1fr}
  .auth-showcase-inner{padding:22px}
}
@media(prefers-reduced-motion:reduce){
  .auth-glow,.auth-wave,.auth-visual-icon{animation:none!important}
}


/* Register-specific compact layout: login design remains unchanged. */
body:has(.auth-register) .auth-page{
  align-items:flex-start;
  padding-top:clamp(20px,3vw,44px);
  padding-bottom:clamp(20px,3vw,44px);
}
body:has(.auth-register) .auth-shell{
  width:min(100%,1120px);
  min-height:0;
  grid-template-columns:minmax(285px,37%) minmax(0,1fr);
}
body:has(.auth-register) .auth-showcase-inner{
  min-height:0;
  height:auto;
  padding:38px 34px 32px;
  justify-content:flex-start;
  gap:0;
}
body:has(.auth-register) .auth-showcase-content{
  margin:46px 0 0;
  padding:0;
}
body:has(.auth-register) .auth-showcase h1{
  font-size:clamp(30px,2.8vw,39px);
  line-height:1.2;
  margin:17px 0 12px;
}
body:has(.auth-register) .auth-showcase-content>p{
  font-size:12px;
  line-height:1.75;
  margin:0;
}
body:has(.auth-register) .auth-feature-list{
  margin-top:31px;
  gap:18px;
}
body:has(.auth-register) .auth-showcase-footer{
  margin-top:40px;
}
body:has(.auth-register) .auth-main-inner.auth-register{
  margin:0;
  padding:38px clamp(24px,3.2vw,46px) 20px;
}
body:has(.auth-register) .auth-register .auth-heading{margin-bottom:24px}
body:has(.auth-register) .auth-register .auth-heading h2{margin-top:11px}
body:has(.auth-register) .auth-register-form{gap:24px}
body:has(.auth-register) .auth-register .auth-form-grid{gap:15px 15px}
body:has(.auth-register) .auth-register .auth-fieldset{padding-bottom:19px}
body:has(.auth-register) .auth-register .auth-fieldset legend{margin-bottom:14px}
body:has(.auth-register) .auth-register .auth-field label:not(.auth-checkline){margin-bottom:6px}
body:has(.auth-register) .auth-register .auth-field input:not([type=checkbox]),
body:has(.auth-register) .auth-register .auth-field select{min-height:44px;padding-top:10px;padding-bottom:10px}
body:has(.auth-register) .auth-register .auth-field textarea{min-height:68px}
body:has(.auth-register) .auth-register .auth-bottom-note{margin-top:15px}
body:has(.auth-register) .auth-register .auth-switch{margin-top:19px}
.auth-password-hint{margin-top:7px;color:#758c85;font-size:11px;line-height:1.55}
.auth-password-rules{margin-top:6px;color:#117d70;font-size:11px}
.auth-password-rules summary{cursor:pointer;width:fit-content;font-weight:650}
.auth-password-rules summary:focus-visible{outline:2px solid #119782;outline-offset:3px}
.auth-password-rules .auth-field-help{max-width:100%;padding:9px 12px;border-radius:9px;background:#f2f8f5}
.auth-optional{font-size:11px;font-weight:500;color:#839b93}
@media(max-width:960px){
  body:has(.auth-register) .auth-shell{grid-template-columns:minmax(225px,35%) minmax(0,1fr)}
  body:has(.auth-register) .auth-showcase-inner{padding:29px 22px}
  body:has(.auth-register) .auth-showcase-content{margin-top:37px}
  body:has(.auth-register) .auth-main-inner.auth-register{padding:29px 24px 18px}
}
@media(max-width:760px){
  body:has(.auth-register) .auth-page{padding:0}
  body:has(.auth-register) .auth-shell{display:block;min-height:100dvh}
  body:has(.auth-register) .auth-main-inner.auth-register{margin:auto;max-width:620px;padding:29px 24px 35px}
}
@media(max-width:480px){
  body:has(.auth-register) .auth-main-inner.auth-register{padding:27px 19px 35px}
  body:has(.auth-register) .auth-register .auth-form-grid{grid-template-columns:1fr;gap:14px}
}
