/* Clinical Trac – responsive login
   One base size on <html> drives every size on the page (rem units).
   >=992px : ONE shared rounded surface (.ct-stage) holding the branding + half-circle image
             (behind) and the login card (on top, overlapping the image)
   <992px  : single login card

   TYPE SCALE (at 16px root):
   12px .75rem   – eyebrow, footer, validation errors
   13px .8125rem – help link, small captions, tooltip
   14px .875rem  – labels, forgot link, "or" divider, feature subtext
   15px .9375rem – inputs, lead paragraph, feature titles
   16px 1rem     – body, button
   22px 1.375rem – card heading
   36px 2.25rem  – hero headline
*/

/* ---------- BASE SIZE: the one knob ---------- */
html{
  background-color:#e8f2ee;
  font-size:16px
}

body.ct-login{
  --g:#0a9b4a;--g-d:#088a41;--navy:#0f1f3d;--muted:#667085;
  /* Right gutter (desktop card + hero); also used for mobile .ct-right padding-right */
  --edge:clamp(2.5rem,5.5vw,8.5rem);
  --ct-card-radius:2rem;
  --ct-login-font:'Poppins',sans-serif;
  --ct-login-type:1rem;--ct-login-lh:1.5rem;--ct-input-height:3rem;
  --ct-card-pad-x:clamp(1.25rem,2.5vw,2.75rem);
  --ct-card-pad-y:clamp(.85rem,1.8vh,1.5rem);
  --ct-card-max-h:calc(100dvh - clamp(.75rem,2vh,1.5rem));
  --ct-card-min-h:clamp(26rem,72dvh,36rem);
  /* “Welcome to …” + school name — one line size on all breakpoints (override in @media below) */
  --ct-welcome-title-fs:clamp(0.98rem,0.92rem + 0.32vw,1.375rem);
  /* School logo in login card — fixed cap (same idea as .ct-brand on the left) */
  --ct-school-logo-max-w:180px;
  --ct-school-logo-max-h:44px;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  font-size:1rem;line-height:1.5;
  color:var(--navy);margin:0;height:100dvh;max-height:100dvh;
  box-sizing:border-box;
  padding:0;
  overflow:hidden;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
  background-color:#e8f2ee;
  background-image:radial-gradient(ellipse 140% 120% at 78% 18%,#f8fcfa,#edf5f1 58%,#e8f2ee 100%);
  background-repeat:no-repeat;background-size:cover;background-position:center top
}
/* Forgot password: shorter form — don’t force login-sized min-height */
body.ct-login:has(#frmFG){--ct-card-min-h:0}
.ct-login *{box-sizing:border-box}
.ct-login h1,.ct-login h2,.ct-login label,.ct-login .btn{font-family:inherit}

/* ---------- LAYOUT: ONE SHARED SURFACE ---------- */
/* Login card width: --card-w (overridden in several @media). Right gutter: --edge on body.ct-login. */
.ct-stage{
  --card-w:clamp(23rem,24vw + 9rem,38rem);
  --ct-safe-left:clamp(1rem,2.5vw,2.5rem); /* keep logo / icons off the viewport edge */
  --tuck:clamp(2.5rem,3vw,3.5rem);       /* how far the image slides under the card */
  --ct-copy-gap:clamp(1rem,2vw,2.25rem); /* clear space before arc border */
  --ct-layout-w:min(100vw,2400px);
  --ct-copy-max:clamp(21rem,42vw,34rem);
  --ct-left-fs-nudge:5px; /* subtract from left-column type + logo (tweak in one place) */
  /* Left column typography (scales with viewport width) */
  --ct-left-eyebrow-fs:clamp(1rem,.26vw + .86rem,1.125rem);
  --ct-left-eyebrow-fw:700;
  --ct-left-headline-fs:clamp(1.875rem,1.35vw + 1.2rem,2.65rem);
  --ct-left-headline-fw:800;
  --ct-left-lead-fs:clamp(1rem,.32vw + .88rem,1.125rem);
  --ct-left-lead-fw:500;
  --ct-left-feature-title-fs:clamp(1rem,.26vw + .86rem,1.125rem);
  --ct-left-feature-title-fw:700;
  --ct-left-feature-sub-fs:clamp(.875rem,.2vw + .78rem,1rem);
  --ct-left-feature-sub-fw:600;
  --ct-left-feature-ico:clamp(2.5rem,1.4vw + 1.7rem,2.85rem);
  --ct-r-vh:min(calc(50dvh - .5rem),calc(100dvh - 2rem));
  --ct-r-fill:max(6.5rem,min(var(--ct-r-vh),calc(var(--ct-layout-w) - var(--ct-safe-left) - var(--ct-copy-max) - var(--ct-copy-gap) - var(--edge) - var(--card-w) + var(--tuck))));
  position:relative;display:flex;align-items:stretch;justify-content:flex-end;gap:0;
  width:100%;max-width:2400px;margin:0 auto;padding:0;
  height:100dvh;max-height:100dvh;min-height:0;
  border-radius:0;overflow:hidden;
  background:linear-gradient(135deg,#fff 0%,#f8fcfa 55%,#eef7f2 100%);
  box-shadow:0 24px 60px rgba(15,31,61,.08)
}

/* ---------- LEFT: copy + features (carousel/arc unchanged below) ---------- */
.ct-left{
  position:absolute;top:0;right:0;bottom:0;left:var(--ct-safe-left);margin:0;min-height:0;
  border-radius:0;background:none;overflow:visible;
  --ct-r:var(--ct-r-fill);
  --ct-copy-w:min(var(--ct-copy-max),max(12rem,calc(100% - var(--edge) - var(--card-w) + var(--tuck) - var(--ct-r) - var(--ct-copy-gap))));
  --ct-ico:clamp(2.5rem,calc(var(--ct-r) * .16),5.25rem)
}
.ct-left-content{
  position:absolute;z-index:5;top:0;bottom:0;left:0;right:auto;
  width:var(--ct-copy-w);
  max-width:var(--ct-copy-max);
  display:flex;flex-direction:column;justify-content:flex-start;align-content:flex-start;
  padding:clamp(1rem,min(4vh,4.25rem),4.25rem) clamp(.5rem,1vw,1rem) clamp(1rem,2vh,1.75rem) clamp(.35rem,.8vw,.75rem);
  min-width:0;max-height:100%;min-height:0;
  overflow-x:hidden;overflow-y:auto;
  scrollbar-width:none;-ms-overflow-style:none;
  -webkit-overflow-scrolling:touch
}
.ct-left-content::-webkit-scrollbar{display:none}

/* Wide asset: cap width first so height does not scale the logo huge on large monitors */
.ct-brand{
  display:block;
  width:min(200px,100%);
  max-width:200px
}
.ct-brand img{
  display:block;
  width:100%;
  height:auto;
  max-height:calc(clamp(56px,6vh,64px) - var(--ct-left-fs-nudge));
  object-fit:contain;
  object-position:left center;
  margin:0
}


.ct-brand,.ct-eyebrow{flex-shrink:0}
.ct-eyebrow{
  display:flex;align-items:center;min-height:1.25rem;margin-top:clamp(1rem,2.5vh,2.25rem);
  font-size:calc(var(--ct-left-eyebrow-fs) - var(--ct-left-fs-nudge));font-weight:var(--ct-left-eyebrow-fw);
  letter-spacing:.14em;color:#667085;white-space:nowrap
}
.ct-eyebrow-line{width:.8rem;height:1.35px;background:#dde3ea;transition:all .3s ease;flex:none}
.ct-eyebrow-line.active{background:var(--g)}
.ct-eyebrow-line:last-child{margin-right:.9rem}
.ct-headline{
  font-size:calc(var(--ct-left-headline-fs) - var(--ct-left-fs-nudge));line-height:1.2;font-weight:var(--ct-left-headline-fw);
  letter-spacing:-.02em;color:var(--navy);
  margin:clamp(1rem,2.5vh,2.25rem) 0 0;white-space:normal;text-wrap:wrap;
  min-height:0;flex-shrink:0
}
.ct-headline span{color:var(--g)}
.ct-lead{
  font-size:calc(var(--ct-left-lead-fs) - var(--ct-left-fs-nudge));font-weight:var(--ct-left-lead-fw);line-height:1.6;
  color:#1f2937;margin:clamp(.75rem,2vh,2rem) 0 0;text-wrap:wrap;
  min-height:0;flex-shrink:0;overflow:visible
}
.ct-features{
  list-style:none;padding:0 clamp(.25rem,1vw,.5rem) 0 .35rem;margin:1rem 0 0;
  flex:0 0 auto;overflow:visible;width:100%;max-width:100%
}
.ct-features li{
  display:flex;align-items:flex-start;gap:clamp(.5rem,.8vw,.65rem);
  min-width:0;min-height:0;margin:0 0 .5rem;overflow:visible
}
.ct-features li>div{min-width:0;flex:1 1 auto}
.ct-features .ct-ico{
  width:calc(var(--ct-left-feature-ico) - var(--ct-left-fs-nudge));
  height:calc(var(--ct-left-feature-ico) - var(--ct-left-fs-nudge));
  font-size:calc((var(--ct-left-feature-ico) - var(--ct-left-fs-nudge)) * .42);margin-top:.05rem
}
.ct-features li:last-child{margin-bottom:0}
.ct-features strong{
  display:block;font-size:calc(var(--ct-left-feature-title-fs) - var(--ct-left-fs-nudge));line-height:1.35;
  font-weight:var(--ct-left-feature-title-fw);color:var(--navy);
  overflow-wrap:anywhere
}
.ct-features small{
  display:block;margin-top:.12rem;font-size:calc(var(--ct-left-feature-sub-fs) - var(--ct-left-fs-nudge));line-height:1.4;
  font-weight:var(--ct-left-feature-sub-fw);color:#374151;
  overflow-wrap:anywhere
}
.ct-ico{
  width:3rem;height:3rem;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;flex:none;flex-shrink:0;
  box-shadow:0 8px 20px rgba(15,31,61,.10);
  overflow:visible
}
.ct-ico.green{background:#dff5e9;color:#0a9b4a}
.ct-ico.blue{background:#e0eefd;color:#1769d1}
.ct-ico.orange{background:#fdecd2;color:#f08a00}
.ct-ico.purple{background:#ece2fb;color:#7a35e0}
.ct-dots{display:flex;gap:.5rem;margin-top:auto;padding-top:clamp(.5rem,1.5vh,1.75rem);flex-shrink:0}
.ct-dots span{display:block;width:1.1rem;height:.45rem;border-radius:5px;background:#dde3ea;cursor:pointer}
.ct-dots span.active{width:2.4rem;background:var(--g)}

/* unused decorative elements still in the HTML */
.ct-hero-ring-svg,.ct-orbit-line-svg,.ct-hero-blend,.ct-globe-feather{display:none}

/* ---------- HERO / CAROUSEL (visual only — do not change slide JS) ---------- */
.ct-arc{
  position:absolute;z-index:2;isolation:isolate;
  right:calc(var(--edge) + var(--card-w) - var(--tuck));
  left:auto;
  top:max(0px,calc(50% - var(--ct-r)));
  width:var(--ct-r);height:calc(var(--ct-r) * 2)
}
/* The image stretches to the right of the half-circle and stops --under past the card's
   left edge (soft fade at its end). Raise --under to go further under the card,
   lower it (min = --tuck) for less. */
.ct-hero{
  --under:10rem;                         /* how far the image goes under the card, measured from the card's LEFT edge */
  --ext:max(0px,calc(var(--under) - var(--tuck)));
  position:absolute;z-index:2;top:0;bottom:0;
  left:calc(-1 * var(--ct-r));width:calc(var(--ct-r) * 2 + var(--ext));
  overflow:hidden;
  -webkit-mask-image:
    radial-gradient(circle var(--ct-r) at calc(var(--ct-r) * 2) 50%,#000 99.4%,transparent 100%),
    radial-gradient(ellipse calc(var(--ct-r) * 2) var(--ct-r) at calc(var(--ct-r) * 2) 50%,
      transparent 0,transparent 50%,
      rgba(0,0,0,.75) 50.2%,rgba(0,0,0,.62) 56%,rgba(0,0,0,.50) 62%,
      rgba(0,0,0,.39) 68%,rgba(0,0,0,.29) 74%,rgba(0,0,0,.20) 80%,
      rgba(0,0,0,.13) 86%,rgba(0,0,0,.07) 92%,rgba(0,0,0,.03) 96%,transparent 100%),
    linear-gradient(to right,#000 0,rgba(0,0,0,.88) 18%,rgba(0,0,0,.7) 36%,rgba(0,0,0,.48) 54%,rgba(0,0,0,.26) 72%,rgba(0,0,0,.1) 88%,transparent 100%);
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-size:calc(var(--ct-r) * 2) 100%,calc(var(--ct-r) * 2) 100%,var(--ext) 100%;
  -webkit-mask-position:0 0,0 0,calc(var(--ct-r) * 2) 0;
  -webkit-mask-composite:source-over;
          mask-image:
    radial-gradient(circle var(--ct-r) at calc(var(--ct-r) * 2) 50%,#000 99.4%,transparent 100%),
    radial-gradient(ellipse calc(var(--ct-r) * 2) var(--ct-r) at calc(var(--ct-r) * 2) 50%,
      transparent 0,transparent 50%,
      rgba(0,0,0,.75) 50.2%,rgba(0,0,0,.62) 56%,rgba(0,0,0,.50) 62%,
      rgba(0,0,0,.39) 68%,rgba(0,0,0,.29) 74%,rgba(0,0,0,.20) 80%,
      rgba(0,0,0,.13) 86%,rgba(0,0,0,.07) 92%,rgba(0,0,0,.03) 96%,transparent 100%),
    linear-gradient(to right,#000 0,rgba(0,0,0,.88) 18%,rgba(0,0,0,.7) 36%,rgba(0,0,0,.48) 54%,rgba(0,0,0,.26) 72%,rgba(0,0,0,.1) 88%,transparent 100%);
          mask-repeat:no-repeat;
          mask-size:calc(var(--ct-r) * 2) 100%,calc(var(--ct-r) * 2) 100%,var(--ext) 100%;
          mask-position:0 0,0 0,calc(var(--ct-r) * 2) 0;
          mask-composite:add
}
.ct-hero .carousel,.ct-hero .carousel-inner,.ct-hero .carousel-item{height:100%}
.ct-hero img{width:100%;height:100%;object-fit:cover;object-position:center 20%;display:block;filter:none}

.ct-orbit{position:absolute;inset:0;z-index:4;pointer-events:none}
.ct-orbit::before{
  content:"";position:absolute;left:-30px;top:-30px;
  width:calc(var(--ct-r) * 2 + 60px);height:calc(var(--ct-r) * 2 + 60px);
  background:linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,rgba(244,251,248,.96) 12%,rgba(226,244,236,.98) 38%,
    rgba(214,239,228,.98) 55%,rgba(240,250,246,.96) 82%,rgba(255,255,255,0) 100%);
  -webkit-mask-image:radial-gradient(circle calc(var(--ct-r) + 30px) at 50% 50%,
    transparent calc(var(--ct-r) - 1px),#000 calc(var(--ct-r) + 1px),
    #000 calc(var(--ct-r) + 23px),transparent calc(var(--ct-r) + 26px));
          mask-image:radial-gradient(circle calc(var(--ct-r) + 30px) at 50% 50%,
    transparent calc(var(--ct-r) - 1px),#000 calc(var(--ct-r) + 1px),
    #000 calc(var(--ct-r) + 23px),transparent calc(var(--ct-r) + 26px));
  clip-path:inset(0 50% 0 0);pointer-events:none
}
.ct-orbit::after{
  content:"";position:absolute;z-index:0;left:-1.5px;top:-1.5px;
  width:calc(var(--ct-r) * 2 + 3px);height:calc(var(--ct-r) * 2 + 3px);
  border:3px solid #0a9b4a;border-radius:50%;clip-path:inset(0 50% 0 0);
  -webkit-mask-image:linear-gradient(to bottom,transparent 5%,#000 12%,#000 66%,transparent 73%);
          mask-image:linear-gradient(to bottom,transparent 5%,#000 12%,#000 66%,transparent 73%);
  pointer-events:none
}
.ct-orbit .ct-ico{
  position:absolute;z-index:4;width:var(--ct-ico);height:var(--ct-ico);
  font-size:calc(var(--ct-ico) * .386);
  border:clamp(3px,calc(var(--ct-ico) * .057),5px) solid #fff;
  box-shadow:0 10px 26px rgba(10,155,74,.16);pointer-events:none
}
.ct-orbit .o1{left:calc(var(--ct-r) * .281 - var(--ct-ico) / 2);top:calc(var(--ct-r) * .305 - var(--ct-ico) / 2)}
.ct-orbit .o2{left:calc(var(--ct-r) * .073 - var(--ct-ico) / 2);top:calc(var(--ct-r) * .625 - var(--ct-ico) / 2)}
.ct-orbit .o3{left:calc(var(--ct-r) * .001 - var(--ct-ico) / 2);top:calc(var(--ct-r) * .965 - var(--ct-ico) / 2)}
.ct-orbit .o4{left:calc(var(--ct-r) * .030 - var(--ct-ico) / 2);top:calc(var(--ct-r) * 1.242 - var(--ct-ico) / 2)}
.ct-orbit .o1{background:#dff5e9;color:#0a9b4a;transition:background .8s ease,color .8s ease}
.ct-orbit .o2{background:#e0eefd;color:#1769d1;transition:background .8s ease,color .8s ease}
.ct-orbit .o3{background:#fdecd2;color:#f08a00;transition:background .8s ease,color .8s ease}
.ct-orbit .o4{background:#ece2fb;color:#7a35e0;transition:background .8s ease,color .8s ease}
.ct-orbit .o1.active{background:#0a9b4a;color:#dff5e9}.ct-orbit .o1.active i{color:#dff5e9}
.ct-orbit .o2.active{background:#1769d1;color:#e0eefd}.ct-orbit .o2.active i{color:#e0eefd}
.ct-orbit .o3.active{background:#f08a00;color:#fdecd2}.ct-orbit .o3.active i{color:#fdecd2}
.ct-orbit .o4.active{background:#7a35e0;color:#ece2fb}.ct-orbit .o4.active i{color:#ece2fb}

/* ---------- RIGHT: login card (pinned to stage right on desktop) ---------- */
.ct-right{
  position:relative;z-index:6;
  flex:0 1 var(--card-w);
  width:min(var(--card-w),calc(100vw - var(--ct-safe-left) - var(--edge) - .75rem));
  max-width:var(--card-w);
  margin-left:auto;margin-right:var(--edge);
  padding:clamp(.35rem,1vh,1.25rem) 0;
  display:flex;flex-direction:column;align-items:stretch;justify-content:center;
  min-width:0;max-height:100%;align-self:stretch;min-height:0
}
.ct-right-stack{
  display:flex;flex-direction:column;align-items:stretch;
  width:100%;flex:0 0 auto;max-height:100%;min-height:0
}
/* Stack = layout only; white card + alerts/validation sit outside each other in .ct-right */
.ct-right-stack:has(> .ct-card){
  position:relative;background:transparent;border-radius:0;
  overflow:visible;box-shadow:none
}
.ct-right-stack > .ct-card{
  flex:0 1 auto;min-height:0;width:100%;margin-block:0
}
.ct-card{
  position:relative;width:100%;flex-shrink:0;
  min-height:min(var(--ct-card-min-h),var(--ct-card-max-h));
  max-height:var(--ct-card-max-h);
  margin-block:0;
  border-radius:var(--ct-card-radius);background:#fff;
  box-shadow:0 18px 48px rgba(15,31,61,.14),0 3px 10px rgba(15,31,61,.06);
  overflow:hidden;display:flex;flex-direction:column;
  isolation:isolate;
  -webkit-backface-visibility:hidden;backface-visibility:hidden;
  transform:translateZ(0)
}
.ct-card-globe-decor{position:absolute;inset:0;border-radius:var(--ct-card-radius);overflow:hidden;pointer-events:none;z-index:0}
.ct-card-globe-decor:before{content:"";position:absolute;right:-24px;bottom:-36px;width:140px;height:140px;border-radius:50%;background:rgba(10,155,74,.06)}
.ct-card-organic{position:absolute;right:0;bottom:0;z-index:1;display:block;width:12rem;height:9.5rem}
.ct-card-organic .o{fill:rgba(10,155,74,.12)}
.ct-card-organic .o-sm{fill:rgba(10,155,74,.14)}
.ct-card-organic .o:nth-child(2){fill:rgba(10,155,74,.1)}
.ct-card>*:not(.ct-card-globe-decor){position:relative;z-index:1}
.ct-help{
  display:flex;align-items:center;gap:.5rem;min-height:1.25rem;font-size:.875rem;font-weight:500;
  color:var(--navy);text-decoration:none;position:absolute;
  top:var(--ct-card-pad-y);right:var(--ct-card-pad-x);z-index:10;max-width:45%;text-align:right
}
.ct-help i{font-size:1rem;color:#475467}
.ct-help:hover{color:var(--g);text-decoration:none}
.ct-card-inner{
  position:relative;width:100%;flex:1 1 auto;min-height:0;
  display:flex;flex-direction:column;box-sizing:border-box;
  padding:var(--ct-card-pad-y) var(--ct-card-pad-x) var(--ct-card-pad-y);
  background:transparent
}
.ct-card-inner #frmLogin,
.ct-card-inner #frmFG{flex:0 0 auto;min-width:0}
.ct-card-inner .login-footer{flex:0 0 auto;margin-top:auto;min-width:0}
.ct-card .school-logo-section{
  position:relative;z-index:1;height:auto;min-height:0;margin:0;padding:0;
  width:min(var(--ct-school-logo-max-w),100%)!important;
  max-width:var(--ct-school-logo-max-w);margin-left:0;margin-right:auto
}
.ct-card .school-logo{
  display:block;width:auto;height:auto;max-width:100%;
  max-height:var(--ct-school-logo-max-h);object-fit:contain;object-position:left center;
  position:relative;z-index:1
}
.ct-card-inner.ct-school-tooltip-open .school-logo-section,
.ct-card-inner.ct-school-tooltip-open .school-logo{z-index:0}
.ct-card h2.ct-welcome-title,
.ct-card h2{
  font-size:var(--ct-welcome-title-fs);line-height:1.4;font-weight:700;letter-spacing:-.01em;
  color:var(--navy);margin:.65rem 0 .4rem;position:relative;z-index:40;isolation:isolate;
  min-height:0;max-height:none;overflow:visible;padding-right:clamp(2rem,4vw,2.75rem);
  text-wrap:wrap;overflow-wrap:anywhere
}

.ct-card .ct-school-name{
  color:var(--g);
  font-size:inherit;
  line-height:inherit;
  font-weight:inherit;
  display:inline;
  margin-right:.35rem;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  vertical-align:baseline
}
.ct-school-info{
  font-size:.92em;color:var(--g);cursor:help;
  width:1.25rem;text-align:center;line-height:1;
  display:inline-block;vertical-align:middle;z-index:2
}
.ct-school-info .ct-tooltip{display:none!important}
.ct-card h2 > .ct-tooltip{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
  visibility:hidden!important;opacity:0!important;pointer-events:none!important
}
.ct-card > .ct-school-tooltip-layer{
  display:none;position:absolute;z-index:250;box-sizing:border-box;pointer-events:none;
  padding:.55rem .75rem;background:var(--g);color:#fff;border-radius:.5rem;
  font-size:.8125rem;font-weight:500;line-height:1.45;text-align:left;
  box-shadow:0 10px 28px rgba(15,31,61,.22);overflow-wrap:anywhere
}
.ct-school-tooltip-layer.is-visible{display:block}
.ct-sub{display:none}
.ct-card .form-group{margin:clamp(.75rem,1.5vh,1.6rem) 0 0}
.ct-card .form-group+.form-group{margin-top:clamp(.55rem,1.1vh,1.25rem)}
.ct-card label{display:block;font-size:.9375rem;line-height:1.4;font-weight:600;color:#212529;margin:0 0 .4rem;font-family:'Poppins',sans-serif}
.ct-field{position:relative;z-index:1}
.ct-field:has(.ct-field-feedback:not(:empty)),
.ct-field:focus-within{z-index:48}
.ct-field-inset{position:relative;width:100%;height:var(--ct-input-height);flex:none}
/* Parsley required/field errors: below the input (inside the card) */
body.ct-login .ct-card .ct-field-feedback{
  position:absolute;left:0;right:0;top:calc(100% + .2rem);margin:0;padding:0;
  min-height:0!important;height:auto;width:100%;max-width:100%;
  overflow:visible;pointer-events:none;z-index:49
}
body.ct-login .ct-card .ct-field-feedback:empty{display:none}
.ct-field-feedback.text-danger{color:#dc3545;font-size:.75rem;line-height:1.35}
.ct-field-inset>i.lead,.ct-field-inset>.ct-field-icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);width:1rem;text-align:center;font-size:1rem;color:var(--navy);z-index:2;pointer-events:none;line-height:1}
.ct-card .form-control:focus{border-color:var(--g);background:#fff;box-shadow:0 0 0 3px rgba(10,155,74,.12)}
.ct-field-inset>.toggle-password{position:absolute;right:1rem;top:50%;transform:translateY(-50%);cursor:pointer;color:var(--navy);font-size:1rem;z-index:3;line-height:1}
.ct-forgot{text-align:right;margin-top:.9rem;line-height:1.3}
.ct-card .forgot-password-label{color:var(--g);font-weight:600;font-size:.9375rem;text-decoration:none}
.ct-card .forgot-password-label:hover{color:var(--g-d);text-decoration:underline}
.ct-card .btn-submit{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:2.75rem;margin-top:1.25rem;background:#08994a;border:0;color:#fff;font-size:.95rem;font-weight:500;border-radius:.5rem;box-shadow:0 8px 18px rgba(10,155,74,.2)}
.ct-card .btn-submit:hover{background:var(--g-d);color:#fff}
.ct-card .btn-submit i{position:absolute;right:1.4rem;font-size:.95rem}
.ct-or{display:flex;align-items:center;gap:1.25rem;height:1.1rem;margin:1.25rem 0 0;font-size:.875rem;font-weight:500;color:#475467}
.ct-or:before,.ct-or:after{content:"";flex:1;height:1px;background:#cdd5df}
.ct-card .download-icon{display:flex;justify-content:center;gap:1.5rem;margin-top:1.25rem}
.ct-card .download-icon img{height:3.25rem;width:7.25rem;display:block;object-fit:contain}
.ct-card .footer-agreement-text{margin-top:1.25rem;border-top:1px solid #e5e7eb;padding:.75rem .5rem 0;text-align:center;font-size:.8125rem;line-height:1.6;color:#4b5563;font-weight:500}
.ct-card .footer-agreement-text hr{display:none}
.ct-card .footer-copy{display:block;margin-top:.4rem;font-size:.8125rem;line-height:1.55;font-weight:500;color:#4b5563}

/* inputs */
body.ct-login .ct-card #frmLogin input.form-control,
body.ct-login .ct-card #frmLogin input.form-control:focus,
body.ct-login .ct-card #frmLogin input.form-control:active,
body.ct-login .ct-card #frmFG input.form-control,
body.ct-login .ct-card #frmFG input.form-control:focus,
body.ct-login .ct-card #frmFG input.form-control:active{
  height:var(--ct-input-height)!important;font-size:var(--ct-login-type)!important;
  line-height:var(--ct-login-lh)!important;font-family:var(--ct-login-font)!important;
  font-weight:400!important;font-style:normal!important;letter-spacing:normal!important;
  border-radius:.75rem;border:2px solid #e2e6eb;background:#f8f9fc;
  padding:.5rem 2.75rem .5rem 2.9rem!important;color:var(--navy);box-shadow:0 2px 4px rgba(15,31,61,.05);
  transition:all .3s ease
}
body.ct-login .ct-card #frmLogin input.form-control::placeholder,
body.ct-login .ct-card #frmFG input.form-control::placeholder{color:#98a2b3;font:inherit!important;opacity:1!important}
body.ct-login .ct-card #frmFG button.btn-submit{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:2.75rem;margin-top:1.25rem;background:#08994a;border:0;color:#fff;font-size:.95rem;font-weight:500;border-radius:.5rem;box-shadow:0 8px 18px rgba(10,155,74,.2)}
body.ct-login .ct-card #frmFG button.btn-submit:hover{background:var(--g-d);color:#fff}
body.ct-login .ct-card #frmFG button.btn-submit i{position:absolute;right:1.4rem;font-size:.95rem}
body.ct-login .ct-card .ct-field-feedback .parsley-errors-list{
  list-style:none;padding:0;margin:0;background:none;border:0;border-radius:0;box-shadow:none
}
body.ct-login .ct-card .ct-field-feedback .parsley-errors-list>li,
body.ct-login .ct-card .ct-field-feedback .parsley-errors-list .parsley-required{
  color:#dc3545;font-size:.75rem;line-height:1.35;margin:0
}
body.ct-login .ct-card .school-logo-section{margin-right:0!important}
body.ct-login .login-footer,
body.ct-login .login-footer .download-icon{width:100%!important;margin-left:0!important;margin-right:0!important}

/* PHP alerts before JS moves them — hidden at card top so they do not cover the logo */
body.ct-login .ct-card > .alert.alert-position{
  position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;
  overflow:hidden!important;opacity:0!important;pointer-events:none!important;margin:0!important
}

/* Server / toast alerts: above the white card (outside .ct-card) */
.ct-right > .ct-card-alerts,
.ct-right > #ctLoginToastHost{
  position:relative;z-index:7;width:100%;flex:0 0 auto;
  display:flex;flex-direction:column;gap:.35rem;
  pointer-events:none;margin:0 0 .25rem;padding:0
}
.ct-right > .ct-card-alerts:empty,
.ct-right > #ctLoginToastHost:empty{display:none}
.ct-right > .ct-card-alerts .alert,
.ct-right > #ctLoginToastHost .alert,
body.ct-login .ct-right .ct-card-alerts .alert-position,
body.ct-login .ct-right .ct-card-alerts .ct-login-toast,
body.ct-login .ct-right > .alert-position,
body.ct-login .ct-right .ct-login-toast{
  position:relative!important;top:auto!important;left:auto!important;right:auto!important;
  transform:none!important;width:100%!important;max-width:none!important;margin:0!important;
  pointer-events:auto;border-radius:.5rem;font-size:.8125rem;line-height:1.45;
  padding:.5rem 2.5rem .5rem .75rem;box-shadow:0 8px 22px rgba(15,31,61,.14);
  transition:opacity .5s,transform .5s;display:flex;align-items:center;min-height:2.25rem
}
body.ct-login .ct-right .ct-card-alerts .alert.alert-dismissible{padding-right:2.5rem}
body.ct-login .ct-right .ct-card-alerts .alert .close{
  position:absolute;top:50%;right:.5rem;transform:translateY(-50%);
  float:none;margin:0;padding:0;width:1.75rem;height:1.75rem;
  display:flex;align-items:center;justify-content:center;line-height:1;font-size:1.25rem;opacity:.85
}
body.ct-login .ct-right .ct-card-alerts .alert .close span[aria-hidden="true"]{line-height:1;display:block}
.ct-right .alert-position.alert-slide-out,.ct-right .ct-login-toast.alert-slide-out{opacity:0;transform:translateY(-6px)!important}
.ct-card-inner .ct-help{z-index:60}
.ct-login .animated{animation-duration:1s;animation-fill-mode:both}
/* =====================================================
   COMPACT DESKTOP (narrow width + short height laptops)
   ===================================================== */
@media(min-width:992px) and (max-width:1100px){
  body.ct-login{--edge:clamp(2.5rem,5.5vw,8.5rem)}
  .ct-stage{
    --card-w:clamp(21rem,38vw,26rem);--tuck:2.75rem;
    --ct-copy-max:clamp(18.5rem,38vw,24rem);
    --ct-left-headline-fs:clamp(1.6rem,1.05vw + 1.05rem,1.85rem);
    --ct-left-lead-fs:clamp(.875rem,.25vw + .78rem,.9375rem);
    --ct-left-feature-ico:clamp(2.25rem,1.15vw + 1.5rem,2.5rem)
  }
  .ct-stage{--ct-safe-left:clamp(1rem,2vw,1.75rem)}
  .ct-left-content{padding:1rem clamp(.35rem,.8vw,.65rem) 1rem .25rem}
  .ct-headline{white-space:normal}
  .ct-eyebrow{height:auto;flex-wrap:wrap;white-space:normal;row-gap:.35rem}
  .ct-lead{margin-top:1.25rem}
  .ct-features{margin-top:1.25rem}
}

/* =====================================================
   NARROW LAPTOPS & iPAD LANDSCAPE (992px - 1199px)
   ===================================================== */
@media(min-width:992px) and (max-width:1199px){
  body.ct-login{padding:0;--edge:clamp(2.5rem,5.5vw,8.5rem)}
  .ct-stage{
    --card-w:clamp(23rem,36vw,30rem);--tuck:3rem;
    --ct-copy-max:clamp(18rem,33vw,25rem);
    --ct-left-headline-fs:clamp(1.65rem,1.1vw + 1.1rem,2rem)
  }
  .ct-stage{--ct-safe-left:clamp(1rem,2.2vw,2rem)}
  .ct-card .download-icon{gap:1rem}
}

/* =====================================================
   LAPTOPS (992–1599px): keep carousel dots under the feature list, in view
   ===================================================== */
@media(min-width:992px) and (max-width:1599px){
  body.ct-login{--edge:clamp(2.5rem,5.5vw,8.5rem)}
  .ct-stage{
    --card-w:clamp(23rem,22vw + 9rem,36rem);
    --ct-copy-max:clamp(20rem,min(36vw,32rem),32rem);
    --ct-copy-gap:clamp(.85rem,1.4vw,1.5rem)
  }
  .ct-left-content{padding-top:clamp(.75rem,2.5vh,1.75rem)}
  .ct-eyebrow{margin-top:clamp(1.85rem,2vh,1.35rem)}
  .ct-headline{margin-top:clamp(2.85rem,2vh,1.35rem)}
  .ct-lead{margin-top:clamp(2.65rem,1.5vh,1.1rem)}
  .ct-features{margin-top:2.85rem}
}

/* =====================================================
   SHORT WINDOWS: tighten spacing instead of shrinking text further
   ===================================================== */
@media(min-width:992px) and (max-height:800px){
  .ct-stage{--ct-r-vh:min(calc(50dvh - .75rem),calc(100dvh - 2.5rem))}
  body.ct-login{
    --ct-card-max-h:calc(100dvh - clamp(.5rem,1.5vh,1.25rem));
    --ct-card-min-h:clamp(22rem,56dvh,32rem)
  }
  .ct-right{padding:clamp(.35rem,1vh,.75rem) 0}
  .ct-left-content{padding:1rem clamp(.35rem,.8vw,.65rem) .85rem .35rem}
  .ct-brand{width:min(180px,100%);max-width:180px}
  .ct-brand img{max-height:47px}
  .ct-eyebrow{margin-top:1.75rem}
  .ct-stage{
    --ct-left-headline-fs:clamp(1.5rem,2.2vh + .75rem,1.9rem);
    --ct-left-lead-fs:clamp(.875rem,.2vw + .78rem,.9375rem);
    --ct-left-feature-title-fs:clamp(.875rem,.18vw + .78rem,.9375rem);
    --ct-left-feature-sub-fs:clamp(.8125rem,.15vw + .72rem,.875rem);
    --ct-left-feature-ico:clamp(2.15rem,1vh + 1.55rem,2.45rem)
  }
  .ct-headline{margin-top:2.25rem}
  .ct-lead{margin-top:2.9rem;line-height:1.55;font-size: 0.75rem}
  .ct-features{margin-top:2.75rem;font-size: 0.75rem}
  .ct-dots{padding-top:.65rem}
  body.ct-login{--ct-school-logo-max-h:40px;--ct-school-logo-max-w:168px}
  .ct-card h2{margin-top:.5rem;margin-bottom:.5rem}
  .ct-card .form-group{margin-top:.9rem}
  .ct-card .form-group+.form-group{margin-top:.7rem}
  .ct-card label{margin-bottom:.3rem}
  .ct-forgot{margin-top:.6rem}
  .ct-card .btn-submit{margin-top:.8rem}
  .ct-or{margin-top:.8rem}
  .ct-card .download-icon{margin-top:.8rem}
  .ct-card .footer-agreement-text{margin-top:.8rem;padding-top:.5rem}
  body.ct-login{
    --ct-card-pad-y:.75rem;
    --ct-input-height:2.65rem
  }
  body.ct-login .ct-card .login-footer .download-icon{
    display:flex!important;justify-content:center;gap:clamp(.65rem,2vw,1rem);margin-top:.65rem
  }
  body.ct-login .ct-card .download-icon img{
    height:clamp(2.35rem,6vh,2.85rem);width:auto;max-width:6.5rem
  }
}
@media(min-width:992px) and (max-height:700px){
  body.ct-login .ct-card .ct-or{display:none}
  body.ct-login{--ct-input-height:2.45rem;--ct-card-pad-y:.65rem}
  .ct-left-content{padding:.75rem clamp(.35rem,.8vw,.65rem) .65rem .35rem}
  .ct-brand{width:min(168px,100%);max-width:168px}
  .ct-brand img{max-height:39px}
  .ct-eyebrow{margin-top:.75rem}
  .ct-stage{
    --ct-left-headline-fs:clamp(1.35rem,2.8vh,1.65rem);
    --ct-left-lead-fs:clamp(.8125rem,.15vw + .72rem,.875rem);
    --ct-left-feature-title-fs:clamp(0.879rem,.12vw + .72rem,.875rem);
    --ct-left-feature-sub-fs:clamp(.92rem,.1vw + .66rem,.8125rem);
    --ct-left-feature-ico:clamp(2rem,1vh + 1.35rem,2.25rem)
  }
  .ct-headline{margin-top:2.55rem;line-height:1.15;font-size:1.25rem}
  .ct-lead{margin-top:1.45rem;line-height:1.45;font-size:.75rem}
  .ct-features{margin-top:2.4rem}
  .ct-dots{padding-top:.35rem}
  body.ct-login{--ct-school-logo-max-h:36px;--ct-school-logo-max-w:156px}
}
@media(min-width:992px) and (max-height:640px){
  .ct-features{
    column-gap:clamp(.45rem,1.2vw,.65rem);row-gap:clamp(.28rem,.8vh,.4rem)
  }
}
@media(min-width:1280px){
  .ct-stage{
    --card-w:clamp(25rem,24vw + 9rem,44rem);
    --tuck:clamp(3rem,3.5vw,4.25rem);
    --ct-copy-max:clamp(22rem,38vw,34rem);
    --ct-left-headline-fs:clamp(2rem,1.25vw + 1.3rem,2.85rem);
    --ct-left-lead-fs:clamp(1.0625rem,.28vw + .92rem,1.1875rem);
    --ct-left-feature-title-fs:clamp(1.0625rem,.22vw + .9rem,1.1875rem);
    --ct-left-feature-sub-fs:clamp(.9375rem,.18vw + .82rem,1.0625rem);
    --ct-left-feature-ico:clamp(2.65rem,1.25vw + 1.85rem,3rem)
  }
  .ct-hero{--under:clamp(10rem,14vw,15rem)}
}
/* =====================================================
   LARGE DESKTOP & MONITORS (wider than typical laptops)
   Keep branding, arc, and card visually grouped; scale card/type slightly.
   ===================================================== */
@media(min-width:1600px){
  html{font-size:17px}
  body.ct-login{
    --edge:clamp(2.75rem,6.25vw,9.5rem);
    --ct-input-height:3.35rem;
    --ct-login-type:1.0625rem;
    --ct-login-lh:1.55rem
  }
  .ct-eyebrow{margin-top:1.5rem;}
  .ct-headline{margin-top:3.5rem;}
  .ct-lead{margin-top:3.5rem;}
  .ct-features{margin-top:3.5rem;}
  .ct-stage{
    --card-w:clamp(31rem,25vw + 8rem,46rem);
    --tuck:clamp(3.25rem,4vw,4.75rem);
    --ct-copy-gap:clamp(1.15rem,1.8vw,2rem);
    --ct-copy-max:clamp(24rem,30vw,36rem);
    --ct-safe-left:clamp(1.25rem,2.5vw,2.75rem);
    --ct-r-vh:min(calc(44dvh - .5rem),calc(100dvh - 2rem))
  }
  .ct-stage{
    --ct-left-headline-fs:clamp(2.15rem,1.45vw + 1.2rem,2.85rem);
    --ct-left-lead-fs:clamp(1.0625rem,.28vw + .92rem,1.1875rem);
    --ct-left-feature-title-fs:clamp(1.0625rem,.22vw + .9rem,1.1875rem);
    --ct-left-feature-sub-fs:clamp(.9375rem,.18vw + .82rem,1.0625rem);
    --ct-left-feature-ico:clamp(2.65rem,1.25vw + 1.85rem,3rem)
  }
  body.ct-login{
    --ct-card-min-h:clamp(28rem,68dvh,40rem)
  }
  body.ct-login .ct-card-inner{
    padding:clamp(1rem,2vh,2rem) clamp(1.75rem,3vw,3rem) clamp(1rem,2.5vh,2.25rem)
  }
  .ct-card .form-group{margin-top:1.85rem}
  .ct-card .form-group+.form-group{margin-top:1.45rem}
  .ct-card .btn-submit{margin-top:1.5rem}
  .ct-card .download-icon{margin-top:1.5rem}
  .ct-card .footer-agreement-text{margin-top:1.5rem;padding-top:1rem}
  body.ct-login{--ct-school-logo-max-w:200px;--ct-school-logo-max-h:48px}
  body.ct-login{--ct-welcome-title-fs:1.5rem}
  .ct-card h2.ct-welcome-title,.ct-card h2{min-height:0}
  .ct-card .btn-submit{height:3rem;font-size:1rem}
}

/* Ultrawide / 4K: cap stage width so the layout stays centered and compact */
@media(min-width:2000px){
  body.ct-login{--edge:clamp(2.5rem,5.5vw,8.5rem)}
  .ct-stage{
    width:100%;max-width:none;margin:0;
    --ct-layout-w:100vw;
    --ct-copy-max:clamp(26rem,28vw,38rem);
    --card-w:clamp(33rem,27vw,50rem)
  }
}

/* =====================================================
   PHONES & iPAD PORTRAIT (<992px): card only
   ===================================================== */
@media(max-width:991px){
  body.ct-login{--edge:clamp(2.5rem,5.5vw,8.5rem)}
  html{font-size:16px}
  html,body.ct-login{
    background-color:#e8f2ee;
    background-image:radial-gradient(ellipse 120% 80% at 50% 0%,#f8fcfa,#edf5f1 55%,#e8f2ee 100%);
    background-size:100% 100%;background-repeat:no-repeat
  }
  html,body.ct-login{height:auto;max-height:none;overflow-x:hidden;overflow-y:auto}
  body.ct-login{display:flex;flex-direction:column;padding:0;min-height:100dvh}
  .ct-stage{
    display:flex;flex:1 0 auto;padding:0;gap:0;justify-content:center;
    background:none;box-shadow:none;border-radius:0;overflow:visible;
    height:auto;max-height:none;min-height:100dvh
  }
  .ct-left{display:none}
  .ct-right{
    position:relative;top:auto;right:auto;bottom:auto;left:auto;
    flex:1;width:100%;max-width:none;flex-direction:column;justify-content:center;margin:0;
    padding:max(16px,env(safe-area-inset-top)) max(var(--edge),env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left))
  }
  body.ct-login{--ct-card-radius:22px}
  .ct-right > .ct-card-alerts,
  .ct-right > #ctLoginToastHost,
  .ct-right-stack:has(> .ct-card){max-width:580px;margin-inline:auto;width:100%}
  .ct-card{
    max-width:none;max-height:none;margin:0 auto;overflow:hidden;min-height:0;
    box-shadow:8px 24px 54px rgba(15,31,61,.055),0 2px 8px rgba(15,31,61,.02)
  }
  body.ct-login .ct-card-inner{
    padding:var(--ct-card-pad-y) var(--ct-card-pad-x) var(--ct-card-pad-y);
    overflow-x:hidden;overflow-y:visible
  }
  .ct-right{align-items:center;justify-content:center}
  .ct-right > .ct-right-stack,
  .ct-right > .ct-card{
    position:relative;top:auto;left:auto;right:auto;transform:none;
    max-height:none;width:100%
  }
  .ct-right-stack{width:100%;max-width:580px;margin-inline:auto}
  body.ct-login{--ct-school-logo-max-w:min(180px,58%);--ct-school-logo-max-h:40px}
  body.ct-login{--ct-welcome-title-fs:1.15rem}
  .ct-card h2{max-height:none}
  .ct-school-tooltip-layer{font-size:.75rem}
  .ct-card .download-icon{gap:1.5rem}
  /* 16px inputs on phones also stops iOS zoom-on-focus */
  body.ct-login .ct-card #frmLogin input.form-control,
  body.ct-login .ct-card #frmFG input.form-control{font-size:1rem!important}
  body.ct-login .ct-card #frmFG button.btn-submit{font-size:1rem!important}
}
@media(min-width:600px) and (max-width:991px){
  body.ct-login{--edge:clamp(2.5rem,5.5vw,8.5rem)}
  .ct-right-stack:has(> .ct-card){max-width:620px}
  body.ct-login{--ct-card-pad-x:clamp(1.35rem,4vw,2.25rem)}
}
@media(max-width:991px) and (max-height:740px){
  body.ct-login{--ct-card-pad-y:.75rem;--ct-input-height:2.65rem}
  .ct-card .download-icon img{height:2.5rem}
  .ct-card .footer-agreement-text{font-size:.75rem;line-height:1.45}
}
/* Mobile/small screens with tall alerts - allow card to shrink */
@media(max-width:991px){
  .ct-right > .ct-card-alerts,
  .ct-right > #ctLoginToastHost{
    margin:0 0 .25rem 0;
    flex-shrink:0
  }
  .ct-right > .ct-card-alerts .alert,
  .ct-right > #ctLoginToastHost .alert{
    min-height:auto;
    height:auto;
    white-space:normal;
    word-wrap:break-word
  }
}

@media(min-width:992px){
  body.ct-login{overflow:hidden}
  html{height:100%;overflow:hidden}
  .ct-stage{width:100%;max-width:none;margin:0;--ct-layout-w:100vw;--ct-safe-left:clamp(1.25rem,2.5vw,2.75rem)}
  /* Match mock: 2×2 feature grid whenever desktop height allows (not only ultra-short) */
  .ct-features{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:clamp(.65rem,1.4vw,1.15rem);row-gap:clamp(.45rem,1vh,.7rem);
    align-content:start
  }
  .ct-features li{margin:0;align-items:flex-start}
  .ct-features .ct-ico{align-self:flex-start}
  .ct-right{
    position:absolute;top:0;right:var(--edge);bottom:0;left:auto;
    width:min(var(--card-w),calc(100vw - var(--ct-safe-left) - var(--edge) - .5rem));
    max-width:var(--card-w);height:100dvh;max-height:100dvh;margin:0;flex:none;
    display:flex;flex-direction:column;align-items:stretch;justify-content:center;
    padding:clamp(.35rem,1vh,.85rem) 0;
    box-sizing:border-box;min-height:0;overflow:visible
  }
  .ct-right > .ct-right-stack,
  .ct-right > .ct-card{
    position:relative;flex:0 0 auto;width:100%;
    top:auto;left:auto;right:auto;transform:none;
    max-height:calc(100dvh - clamp(2rem,6vh,4rem));
    min-height:0;margin-top:0;margin-bottom:0;
    overflow:visible
  }
  .ct-right > .ct-right-stack:has(> .ct-card){overflow:visible}
  .ct-right-stack > .ct-card{
    min-height:0;
    max-height:min(var(--ct-card-max-h),calc(100dvh - clamp(2.5rem,7vh,5rem)))
  }
  body.ct-login .ct-brand{
    width:min(200px,42%);
    max-width:200px
  }
  body.ct-login .ct-brand img{
    width:100%;
    height:auto;
    max-height:51px;
    max-width:200px
  }
  body.ct-login{--ct-school-logo-max-w:200px;--ct-school-logo-max-h:48px}
  .ct-hero{--under:clamp(8rem,12vw,12rem)}
  .ct-hero .carousel,.ct-hero .carousel-inner,.ct-hero .carousel-item,.ct-hero img{
    min-height:100%;height:100%
  }
  .ct-card-inner{
    overflow-x:hidden;overflow-y:auto;
    scrollbar-width:none;-ms-overflow-style:none;
    -webkit-overflow-scrolling:touch
  }
  .ct-card-inner::-webkit-scrollbar{display:none}
  .ct-card .footer-agreement-text{font-size:clamp(.75rem,.8vw,.8125rem);line-height:1.5}
  .ct-card .footer-copy{font-size:clamp(.75rem,.8vw,.8125rem)}
}
@media(min-width:1600px){
  body.ct-login{--edge:clamp(2.75rem,6.25vw,9.5rem)}
}
@media(min-width:992px) and (min-height:640px){
  .ct-left-content{
    justify-content:center;
    padding-top:clamp(1rem,2.5vh,2rem);
    padding-bottom:clamp(1rem,2.5vh,2rem)
  }
}
@media(min-width:992px) and (max-height:639px){
  .ct-left-content{justify-content:flex-start}
  .ct-right > .ct-right-stack,
  .ct-right > .ct-card{
    max-height:calc(100dvh - clamp(1rem,2.5vh,2rem))
  }
}
/* Small height screens (under 850px ) - give more space for tall alerts */
@media(min-width:992px) and (max-height:850px){
  .ct-right > .ct-card-alerts,
  .ct-right > #ctLoginToastHost{
    margin:0 0 .25rem 0
  }
  .ct-right > .ct-card-alerts .alert,
  .ct-right > #ctLoginToastHost .alert{
    min-height:auto;
    height:auto
  }
  .ct-card{
    min-height:auto;
    max-height:calc(100dvh - 4rem)
  }
}
@media(min-width:1600px) and (max-height:900px){
  body.ct-login{--ct-input-height:2.75rem}
  .ct-card .form-group{margin-top:clamp(.55rem,1vh,.85rem)!important}
  .ct-card .form-group+.form-group{margin-top:clamp(.45rem,.85vh,.6rem)!important}
  .ct-card .btn-submit,
  .ct-card .download-icon,
  .ct-card .footer-agreement-text{margin-top:clamp(.45rem,.85vh,.65rem)!important}
  body.ct-login{--ct-school-logo-max-h:38px!important;--ct-school-logo-max-w:160px!important}
}

/* Hide the info icon unless the school name is truncated */
.ct-card .ct-school-info {
    display: none;
}

.ct-card .ct-school-info.is-truncated {
    display: inline-block;
}
/* ===== Desktop: keep a bottom gap ONLY while alerts are visible ===== */
@media(min-width:992px){
  body.ct-login{
    --ct-edge-gap:clamp(1rem,3vh,2rem);
  }

  /* Applies only when the alerts/toast host has content */
  body.ct-login .ct-right:has(> .ct-card-alerts > *, > #ctLoginToastHost > *){
    padding-top:var(--ct-edge-gap);
    padding-bottom:var(--ct-edge-gap);
    min-height:0;
  }

  body.ct-login .ct-right:has(> .ct-card-alerts > *, > #ctLoginToastHost > *)
    > .ct-right-stack,
  body.ct-login .ct-right:has(> .ct-card-alerts > *, > #ctLoginToastHost > *)
    > .ct-card{
    flex:0 1 auto;
    min-height:0;
  }

  body.ct-login .ct-right:has(> .ct-card-alerts > *, > #ctLoginToastHost > *)
    .ct-card{
    min-height:0;
    max-height:calc(100dvh - (2 * var(--ct-edge-gap)));
  }
}