
/* CHA v44 — Sign-in page final structure fix
   Keeps the public home header/footer markup intact and isolates only the login stage.
   Design tokens follow Cuba Health Assist Design System v2.0: Inter, 8pt grid,
   #0E7C7B primary, #084D4D footer surface, 16px cards, teal-tinted shadows. */
:root{
  --cha-teal:#0E7C7B;
  --cha-teal-700:#0B6463;
  --cha-teal-800:#084D4D;
  --cha-teal-50:#E8F4F4;
  --cha-teal-100:#CCEAEA;
  --cha-teal-200:#9FD7D6;
  --cha-teal-400:#2AA8A6;
  --cha-ink:#1E293B;
  --cha-muted:#64748B;
  --cha-border:#E2E8F0;
  --cha-surface:#FFFFFF;
  --cha-shadow-sm:0 1px 2px rgba(14,124,123,.05);
  --cha-shadow-lg:0 10px 30px -10px rgba(14,124,123,.18);
}
body.cha-signin-page{
  margin:0;
  background:#fff;
  color:var(--cha-ink);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  overflow-x:hidden;
}
/* Keep home header visually stable on auth page. */
body.cha-signin-page header#top{
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid rgba(226,232,240,.9)!important;
  backdrop-filter:saturate(170%) blur(14px);
  -webkit-backdrop-filter:saturate(170%) blur(14px);
}
body.cha-signin-page header#top a,
body.cha-signin-page header#top button{
  font-weight:500!important;
}
body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto > a[href="/apply/"],
body.cha-signin-page header#top .btn-primary-nav{
  font-weight:600!important;
}
/* Normal document flow: login first, footer after. No absolute/fixed footer behavior. */
.cha-signin-main{
  position:relative;
  overflow:hidden;
  padding:96px 20px 104px;
  background:
    radial-gradient(120% 80% at 15% 10%, rgba(232,244,244,.95) 0%, transparent 55%),
    radial-gradient(100% 70% at 90% 100%, rgba(42,168,166,.22) 0%, transparent 60%),
    linear-gradient(180deg,#fff 0%, #F8FAFB 100%);
  border-bottom:1px solid rgba(226,232,240,.8);
  min-height:calc(100vh - 128px);
}
.cha-signin-main .auth-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  background:none!important;
}
.cha-signin-main .auth-bg__grid{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(to right, rgba(30,41,59,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,41,59,.04) 1px, transparent 1px);
  background-size:32px 32px;
  opacity:.55;
}
.cha-signin-main .auth-bg__orb{position:absolute;border-radius:9999px;filter:blur(80px);opacity:.34;}
.cha-signin-main .auth-bg__orb--a{top:-160px;left:-120px;width:420px;height:420px;background:radial-gradient(circle,var(--cha-teal-400) 0%,transparent 70%);}
.cha-signin-main .auth-bg__orb--b{bottom:-190px;right:-120px;width:520px;height:520px;background:radial-gradient(circle,var(--cha-teal) 0%,transparent 70%);}
.cha-signin-main .auth-bg__pulse{position:absolute;right:12%;top:50%;color:var(--cha-teal);opacity:.15;}
.cha-signin-main .auth-stage{
  position:relative!important;
  z-index:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:auto!important;
  flex:initial!important;
  padding:0!important;
  width:100%;
}
.cha-signin-main .auth-card{
  width:100%!important;
  max-width:520px!important;
  margin:0 auto!important;
  background:#fff!important;
  border:1px solid rgba(226,232,240,.9)!important;
  border-radius:16px!important;
  box-shadow:var(--cha-shadow-lg)!important;
  padding:40px!important;
}
.cha-signin-main .brand-header{gap:16px;}
.cha-signin-main .brand-header__logo img{height:32px;width:auto;max-width:210px;object-fit:contain;}
.cha-signin-main .brand-pill{
  border-color:var(--cha-teal-200);
  background:var(--cha-teal-50);
  color:var(--cha-teal-700);
  font-size:12px;
  font-weight:500;
}
.cha-signin-main .auth-header__title{
  color:var(--cha-ink);
  font-size:30px!important;
  line-height:1.2!important;
  font-weight:700!important;
  letter-spacing:-.02em!important;
}
.cha-signin-main .auth-header__desc{
  color:var(--cha-muted)!important;
  font-size:14px!important;
  line-height:1.55!important;
  font-weight:400!important;
}
.cha-signin-main .field__label{font-weight:500!important;color:var(--cha-ink)!important;}
.cha-signin-main .field__input{
  height:44px!important;
  border-radius:8px!important;
  border:1px solid var(--cha-border)!important;
  background:#fff!important;
  font-size:14px!important;
}
.cha-signin-main .field__input:focus{
  border-color:var(--cha-teal)!important;
  box-shadow:0 0 0 4px rgba(14,124,123,.10)!important;
}
.cha-signin-main .btn-submit{
  height:44px!important;
  border-radius:8px!important;
  background:var(--cha-teal)!important;
  font-size:14px!important;
  line-height:20px!important;
  font-weight:600!important;
  box-shadow:var(--cha-shadow-sm)!important;
}
.cha-signin-main .btn-submit:hover{background:var(--cha-teal-700)!important;}
.cha-signin-main .footer-switch,
.cha-signin-main .divider span,
.cha-signin-main .row-between,
.cha-signin-main .link-primary{
  font-size:13px!important;
}
.cha-signin-main .link-primary,
.cha-signin-main .footer-switch a{color:var(--cha-teal)!important;font-weight:500!important;}
/* Restore footer to normal flow, using home footer styling. */
body.cha-signin-page footer{
  position:relative!important;
  z-index:2!important;
  margin:0!important;
  clear:both!important;
}
body.cha-signin-page footer h3{font-weight:600!important;letter-spacing:-.01em!important;}
body.cha-signin-page footer h4{font-weight:600!important;}
body.cha-signin-page footer a,
body.cha-signin-page footer p,
body.cha-signin-page footer span{font-weight:400;}
body.cha-signin-page footer button,
body.cha-signin-page footer .font-semibold{font-weight:600!important;}
@media (max-width:1023px){
  .cha-signin-main{padding:80px 20px 88px;min-height:auto;}
}
@media (max-width:720px){
  .cha-signin-main{padding:56px 20px 64px;}
  .cha-signin-main .auth-card{padding:24px 18px!important;border-radius:16px!important;}
  .cha-signin-main .brand-header{align-items:flex-start!important;gap:12px!important;}
  .cha-signin-main .brand-header__logo img{height:28px;max-width:170px;}
  .cha-signin-main .brand-pill{white-space:normal;line-height:1.3;min-height:28px;}
  .cha-signin-main .auth-header__title{font-size:28px!important;}
  .cha-signin-main .social-row,.cha-signin-main .divider{display:none!important;}
}
@media (prefers-reduced-motion:reduce){
  .cha-signin-page *, .cha-signin-page *::before, .cha-signin-page *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}


/* CHA v7.3 — Sign-in public footer mobile alignment.
   Keep homepage footer/header markup; only make the sign-in footer compact and stable on small screens. */
@media (max-width: 860px){
  body.cha-signin-page footer{
    overflow:hidden!important;
  }
  body.cha-signin-page footer .max-w-7xl,
  body.cha-signin-page footer .container-page,
  body.cha-signin-page footer .cha-site-shell{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    padding-left:20px!important;
    padding-right:20px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  /* Newsletter / top banner */
  body.cha-signin-page footer > .w-full:nth-of-type(2) > div,
  body.cha-signin-page footer .cha-footer-newsletter__inner{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:18px!important;
    padding-top:30px!important;
    padding-bottom:30px!important;
  }
  body.cha-signin-page footer > .w-full:nth-of-type(2) h3,
  body.cha-signin-page footer .cha-footer-newsletter__text h3{
    margin:0 0 6px!important;
    font-size:20px!important;
    line-height:1.25!important;
    font-weight:600!important;
    letter-spacing:-.01em!important;
    text-align:left!important;
  }
  body.cha-signin-page footer > .w-full:nth-of-type(2) p,
  body.cha-signin-page footer .cha-footer-newsletter__text p{
    margin:0!important;
    font-size:13px!important;
    line-height:1.55!important;
    text-align:left!important;
    max-width:34rem!important;
  }
  body.cha-signin-page footer form,
  body.cha-signin-page footer .cha-footer-subscribe{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  body.cha-signin-page footer form input,
  body.cha-signin-page footer form button,
  body.cha-signin-page footer form a,
  body.cha-signin-page footer .cha-footer-subscribe input,
  body.cha-signin-page footer .cha-footer-subscribe button,
  body.cha-signin-page footer .cha-footer-subscribe a{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:46px!important;
    margin:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    box-sizing:border-box!important;
    border-radius:9999px!important;
    white-space:nowrap!important;
  }
  body.cha-signin-page footer form .h-8,
  body.cha-signin-page footer form .w-px{
    display:none!important;
  }
  /* Main footer columns */
  body.cha-signin-page footer .grid,
  body.cha-signin-page footer .cha-footer-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:28px!important;
  }
  body.cha-signin-page footer .col-span-2,
  body.cha-signin-page footer .cha-footer-brand{
    grid-column:auto!important;
  }
  body.cha-signin-page footer .py-16,
  body.cha-signin-page footer .cha-footer-main{
    padding-top:34px!important;
    padding-bottom:34px!important;
  }
  body.cha-signin-page footer img{
    height:auto!important;
    max-height:38px!important;
    max-width:190px!important;
    object-fit:contain!important;
  }
  body.cha-signin-page footer h4,
  body.cha-signin-page footer .cha-footer-col h4{
    margin-bottom:12px!important;
    font-size:11px!important;
    line-height:16px!important;
    letter-spacing:.12em!important;
  }
  body.cha-signin-page footer ul,
  body.cha-signin-page footer .space-y-4,
  body.cha-signin-page footer .cha-footer-col ul{
    display:grid!important;
    gap:10px!important;
  }
  body.cha-signin-page footer a,
  body.cha-signin-page footer p,
  body.cha-signin-page footer li,
  body.cha-signin-page footer span{
    font-size:13px!important;
    line-height:1.55!important;
  }
  /* Bottom legal row */
  body.cha-signin-page footer > .max-w-7xl:last-child,
  body.cha-signin-page footer .cha-footer-bottom__inner{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:12px!important;
    padding-top:20px!important;
    padding-bottom:calc(24px + env(safe-area-inset-bottom))!important;
  }
  body.cha-signin-page footer nav,
  body.cha-signin-page footer .cha-footer-bottom nav{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:12px 16px!important;
  }
}
@media (max-width: 420px){
  body.cha-signin-page footer .max-w-7xl,
  body.cha-signin-page footer .container-page,
  body.cha-signin-page footer .cha-site-shell{
    padding-left:16px!important;
    padding-right:16px!important;
  }
  body.cha-signin-page footer > .w-full:nth-of-type(2) > div,
  body.cha-signin-page footer .cha-footer-newsletter__inner{
    padding-top:26px!important;
    padding-bottom:26px!important;
  }
  body.cha-signin-page footer > .w-full:nth-of-type(2) h3,
  body.cha-signin-page footer .cha-footer-newsletter__text h3{
    font-size:18px!important;
  }
}


/* CHA v7.4 — Sign-in footer clean structure.
   Scope is intentionally limited to /signin/ through body.cha-signin-page and .cha-signin-footer. */
body.cha-signin-page .cha-signin-footer,
body.cha-signin-page .cha-signin-footer *{box-sizing:border-box!important}
body.cha-signin-page .cha-signin-footer{background:#084D4D!important;color:rgba(255,255,255,.82)!important;overflow:hidden!important;width:100%!important;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
body.cha-signin-page .cha-signin-footer a{color:inherit!important;text-decoration:none!important}
body.cha-signin-page .cha-signin-footer__inner{width:min(1280px,100%)!important;margin:0 auto!important;padding-left:24px!important;padding-right:24px!important}
body.cha-signin-page .cha-signin-footer__newsletter{border-top:2px solid rgba(42,168,166,.75)!important;border-bottom:1px solid rgba(255,255,255,.12)!important;background:linear-gradient(180deg,#084D4D 0%,#053f3f 100%)!important}
body.cha-signin-page .cha-signin-footer__newsletter-inner{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(520px,.95fr)!important;gap:32px!important;align-items:center!important;padding-top:36px!important;padding-bottom:36px!important}
body.cha-signin-page .cha-signin-footer__newsletter h2{margin:0 0 8px!important;color:#fff!important;font-size:20px!important;line-height:1.25!important;font-weight:650!important;letter-spacing:-.01em!important}
body.cha-signin-page .cha-signin-footer__newsletter p{margin:0!important;color:rgba(255,255,255,.72)!important;font-size:14px!important;line-height:1.55!important}
body.cha-signin-page .cha-signin-footer__form{display:grid!important;grid-template-columns:minmax(220px,1fr) auto auto!important;gap:12px!important;align-items:center!important;width:100%!important}
body.cha-signin-page .cha-signin-footer__form input,
body.cha-signin-page .cha-signin-footer__form button,
body.cha-signin-page .cha-signin-footer__form a{height:44px!important;border-radius:999px!important;padding:0 20px!important;font-size:14px!important;line-height:20px!important;font-weight:600!important;white-space:nowrap!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:0!important}
body.cha-signin-page .cha-signin-footer__form input{width:100%!important;background:rgba(255,255,255,.09)!important;border:1px solid rgba(255,255,255,.22)!important;color:#fff!important;font-weight:400!important;justify-content:flex-start!important;outline:none!important}
body.cha-signin-page .cha-signin-footer__form input::placeholder{color:rgba(255,255,255,.54)!important}
body.cha-signin-page .cha-signin-footer__form button{border:1px solid rgba(42,168,166,.35)!important;background:#0E7C7B!important;color:#fff!important;cursor:pointer!important}
body.cha-signin-page .cha-signin-footer__form a{border:1px solid rgba(255,255,255,.34)!important;color:#fff!important;background:transparent!important}
body.cha-signin-page .cha-signin-footer__main{border-bottom:1px solid rgba(255,255,255,.12)!important}
body.cha-signin-page .cha-signin-footer__grid{display:grid!important;grid-template-columns:minmax(260px,1.45fr) repeat(4,minmax(130px,1fr))!important;gap:42px!important;padding-top:52px!important;padding-bottom:52px!important}
body.cha-signin-page .cha-signin-footer__brand img{display:block!important;max-width:205px!important;width:auto!important;height:auto!important;max-height:42px!important;object-fit:contain!important;margin:0 0 18px!important}
body.cha-signin-page .cha-signin-footer__brand p{margin:0 0 18px!important;max-width:330px!important;color:rgba(255,255,255,.72)!important;font-size:14px!important;line-height:1.65!important}
body.cha-signin-page .cha-signin-footer__contact{display:grid!important;gap:9px!important;list-style:none!important;margin:0 0 20px!important;padding:0!important;color:rgba(255,255,255,.78)!important;font-size:13px!important;line-height:1.5!important}
body.cha-signin-page .cha-signin-footer__social{display:flex!important;gap:10px!important;align-items:center!important;flex-wrap:wrap!important}
body.cha-signin-page .cha-signin-footer__social a{width:38px!important;height:38px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.18)!important;background:rgba(255,255,255,.08)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;color:#fff!important;font-size:12px!important;font-weight:700!important;letter-spacing:.01em!important}
body.cha-signin-page .cha-signin-footer__col{display:grid!important;align-content:start!important;gap:12px!important;min-width:0!important}
body.cha-signin-page .cha-signin-footer__col h3{margin:0 0 8px!important;color:#6BC1C0!important;text-transform:uppercase!important;font-size:12px!important;line-height:16px!important;letter-spacing:.18em!important;font-weight:750!important}
body.cha-signin-page .cha-signin-footer__col h3::after{content:""!important;display:block!important;width:32px!important;height:1px!important;background:rgba(107,193,192,.7)!important;margin-top:11px!important}
body.cha-signin-page .cha-signin-footer__col a{display:block!important;color:rgba(255,255,255,.76)!important;font-size:14px!important;line-height:1.5!important;font-weight:400!important;overflow-wrap:anywhere!important}
body.cha-signin-page .cha-signin-footer__bottom-inner{display:grid!important;grid-template-columns:auto auto 1fr auto!important;gap:18px 24px!important;align-items:center!important;padding-top:24px!important;padding-bottom:28px!important;color:rgba(255,255,255,.7)!important;font-size:12px!important;line-height:1.45!important}
body.cha-signin-page .cha-signin-footer__bottom p{margin:0!important}
body.cha-signin-page .cha-signin-footer__langs{color:#6BC1C0!important;font-weight:650!important;white-space:nowrap!important}
body.cha-signin-page .cha-signin-footer__legal-links{display:flex!important;gap:18px!important;flex-wrap:wrap!important;justify-content:flex-end!important;min-width:0!important}
body.cha-signin-page .cha-signin-footer__secure{justify-self:end!important;display:inline-flex!important;align-items:center!important;gap:6px!important;border-radius:999px!important;padding:5px 11px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;font-weight:650!important;white-space:nowrap!important}

@media (max-width: 980px){
  body.cha-signin-page .cha-signin-footer__newsletter-inner{grid-template-columns:1fr!important;gap:20px!important;padding-top:34px!important;padding-bottom:34px!important}
  body.cha-signin-page .cha-signin-footer__form{grid-template-columns:1fr!important;gap:12px!important}
  body.cha-signin-page .cha-signin-footer__form input,
  body.cha-signin-page .cha-signin-footer__form button,
  body.cha-signin-page .cha-signin-footer__form a{width:100%!important;max-width:100%!important;height:48px!important;text-align:center!important}
  body.cha-signin-page .cha-signin-footer__grid{grid-template-columns:1fr 1fr!important;gap:32px 26px!important;padding-top:42px!important;padding-bottom:42px!important}
  body.cha-signin-page .cha-signin-footer__brand{grid-column:1/-1!important}
  body.cha-signin-page .cha-signin-footer__bottom-inner{grid-template-columns:1fr!important;justify-items:start!important;align-items:start!important;gap:12px!important;padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
  body.cha-signin-page .cha-signin-footer__legal-links{justify-content:flex-start!important;gap:10px 18px!important}
  body.cha-signin-page .cha-signin-footer__secure{justify-self:start!important}
}
@media (max-width: 560px){
  body.cha-signin-page .cha-signin-footer__inner{padding-left:22px!important;padding-right:22px!important}
  body.cha-signin-page .cha-signin-footer__newsletter-inner{padding-top:30px!important;padding-bottom:30px!important}
  body.cha-signin-page .cha-signin-footer__newsletter h2{font-size:20px!important;line-height:1.25!important}
  body.cha-signin-page .cha-signin-footer__newsletter p{font-size:14px!important;line-height:1.6!important}
  body.cha-signin-page .cha-signin-footer__form input,
  body.cha-signin-page .cha-signin-footer__form button,
  body.cha-signin-page .cha-signin-footer__form a{height:46px!important;font-size:14px!important}
  body.cha-signin-page .cha-signin-footer__grid{grid-template-columns:1fr 1fr!important;gap:30px 22px!important;padding-top:36px!important;padding-bottom:36px!important}
  body.cha-signin-page .cha-signin-footer__brand p{font-size:14px!important;line-height:1.65!important;max-width:100%!important}
  body.cha-signin-page .cha-signin-footer__contact{font-size:13px!important;gap:8px!important}
  body.cha-signin-page .cha-signin-footer__social a{width:36px!important;height:36px!important}
  body.cha-signin-page .cha-signin-footer__col{gap:10px!important}
  body.cha-signin-page .cha-signin-footer__col h3{font-size:11px!important;letter-spacing:.16em!important;margin-bottom:5px!important}
  body.cha-signin-page .cha-signin-footer__col h3::after{width:28px!important;margin-top:9px!important}
  body.cha-signin-page .cha-signin-footer__col a{font-size:13px!important;line-height:1.5!important}
  body.cha-signin-page .cha-signin-footer__bottom-inner{font-size:12px!important;padding-top:22px!important;padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
}
@media (max-width: 380px){
  body.cha-signin-page .cha-signin-footer__inner{padding-left:18px!important;padding-right:18px!important}
  body.cha-signin-page .cha-signin-footer__grid{gap:28px 18px!important}
  body.cha-signin-page .cha-signin-footer__col a{font-size:12.5px!important}
}

/* CHA v8.5 — Sign-in public header CTA match fix.
   Scope: /signin/ only. Keeps the public homepage CTA geometry, color and spacing. */
body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto > a[href="/apply/"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 20px!important;
  border:0!important;
  border-radius:9999px!important;
  background:#0E7C7B!important;
  color:#FFFFFF!important;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:13.5px!important;
  line-height:20px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  text-align:center!important;
  white-space:nowrap!important;
  box-shadow:0 1px 2px 0 rgba(14,124,123,.05),0 4px 16px rgba(14,124,123,.06)!important;
  transition:background-color .25s cubic-bezier(.16,1,.3,1),box-shadow .25s cubic-bezier(.16,1,.3,1),transform .25s cubic-bezier(.16,1,.3,1)!important;
  transform:none!important;
  overflow:visible!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto > a[href="/apply/"]:hover,
body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto > a[href="/apply/"]:focus-visible{
  background:#0B6463!important;
  color:#FFFFFF!important;
  box-shadow:0 8px 24px rgba(14,124,123,.14),0 20px 50px rgba(14,124,123,.10)!important;
  transform:translateY(-2px)!important;
  outline:none!important;
}
body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto > a[href="/apply/"] svg{
  display:block!important;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  flex:0 0 auto!important;
  margin:0!important;
  color:currentColor!important;
  stroke:currentColor!important;
}
@media (min-width:768px){
  body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto > a[href="/apply/"]{display:inline-flex!important;}
}

/* CHA v8.6 — Exact Sign-in Header CTA/Action Row Fix
   The sign-in page loads auth styles after public styles, so lock the public
   header action row to the homepage geometry and prevent flex item shrink. */
body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex:0 0 auto!important;
  min-width:max-content!important;
  white-space:nowrap!important;
}
body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto > *{
  flex:0 0 auto!important;
}
body.cha-signin-page header#top .cha-header-signin{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 16px!important;
  border-radius:9999px!important;
  border:1px solid #E2E8F0!important;
  background:#FFFFFF!important;
  color:rgba(30,41,59,.80)!important;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:13.5px!important;
  line-height:20px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
  box-sizing:border-box!important;
}
body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto > a[href="/apply/"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 20px!important;
  margin-left:0!important;
  border:0!important;
  border-radius:9999px!important;
  background:#0E7C7B!important;
  color:#FFFFFF!important;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:13.5px!important;
  line-height:20px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  text-align:center!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content!important;
  max-width:none!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  box-shadow:0 1px 2px rgba(14,124,123,.05),0 4px 16px rgba(14,124,123,.06)!important;
  transform:none!important;
}
body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto > a[href="/apply/"] svg{
  display:block!important;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  flex:0 0 15px!important;
  margin:0!important;
  color:#FFFFFF!important;
  stroke:currentColor!important;
}
body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto > a[href="/apply/"]:hover,
body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto > a[href="/apply/"]:focus-visible{
  background:#0B6463!important;
  color:#FFFFFF!important;
  transform:translateY(-2px)!important;
}

/* CHA v16.2 — Sign-in mobile header and recovery modal polish
   Scope is intentionally limited to /signin/ so the public homepage header is not touched. */
@media (max-width:767px){
  body.cha-signin-page,
  body.cha-signin-page .min-h-dvh,
  body.cha-signin-page header#top,
  body.cha-signin-page main{
    max-width:100vw!important;
    overflow-x:hidden!important;
  }
  body.cha-signin-page header#top{
    position:sticky!important;
    top:0!important;
    z-index:90!important;
  }
  body.cha-signin-page header#top .container-page{
    width:100%!important;
    max-width:100%!important;
    padding-left:22px!important;
    padding-right:22px!important;
    overflow:hidden!important;
  }
  body.cha-signin-page header#top .relative.flex{
    height:66px!important;
    min-height:66px!important;
    gap:10px!important;
  }
  body.cha-signin-page header#top a[href="/"]{
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:156px!important;
    overflow:hidden!important;
  }
  body.cha-signin-page header#top a[href="/"] img{
    width:100%!important;
    max-width:156px!important;
    height:auto!important;
    max-height:36px!important;
    object-fit:contain!important;
    object-position:left center!important;
  }
  body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto{
    flex:0 0 auto!important;
    min-width:0!important;
    max-width:calc(100vw - 198px)!important;
    gap:8px!important;
    overflow:visible!important;
  }
  body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto > a[href="/apply/"],
  body.cha-signin-page header#top a.hidden.md\:inline-flex[href="/apply/"]{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
  }
  body.cha-signin-page header#top .cha-header-signin{
    display:inline-flex!important;
    height:40px!important;
    min-height:40px!important;
    padding:0 14px!important;
    font-size:13px!important;
    line-height:18px!important;
    flex:0 0 auto!important;
  }
  body.cha-signin-page header#top button[aria-label="Open menu"]{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    flex:0 0 44px!important;
  }
  body.cha-signin-page header#top button[aria-label*="Language"]{
    width:48px!important;
    min-width:48px!important;
    height:40px!important;
    padding:0 10px!important;
    flex:0 0 48px!important;
  }
  body.cha-signin-page .cha-signin-main{
    padding:46px 20px 72px!important;
    min-height:auto!important;
  }
  body.cha-signin-page .cha-signin-main .auth-card{
    max-width:100%!important;
    border-radius:20px!important;
    padding:28px!important;
  }
  body.cha-signin-page .cha-signin-main .brand-header{
    gap:14px!important;
    align-items:center!important;
  }
  body.cha-signin-page .cha-signin-main .brand-header__logo{
    min-width:0!important;
    flex:1 1 auto!important;
  }
  body.cha-signin-page .cha-signin-main .brand-header__logo img{
    max-width:156px!important;
    height:auto!important;
    max-height:31px!important;
  }
  body.cha-signin-page .cha-signin-main .brand-pill{
    flex:0 0 auto!important;
    max-width:170px!important;
    height:30px!important;
    padding:0 11px!important;
    font-size:11.5px!important;
    white-space:nowrap!important;
  }
}
@media (max-width:430px){
  body.cha-signin-page header#top .container-page{
    padding-left:20px!important;
    padding-right:20px!important;
  }
  body.cha-signin-page header#top a[href="/"]{
    max-width:148px!important;
  }
  body.cha-signin-page header#top a[href="/"] img{
    max-width:148px!important;
  }
  body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto{
    max-width:calc(100vw - 188px)!important;
    gap:7px!important;
  }
  body.cha-signin-page header#top .cha-header-signin{
    padding:0 13px!important;
    font-size:13px!important;
  }
  body.cha-signin-page header#top button[aria-label="Open menu"]{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    flex-basis:42px!important;
  }
  body.cha-signin-page header#top button[aria-label*="Language"]{
    width:46px!important;
    min-width:46px!important;
    height:40px!important;
    flex-basis:46px!important;
  }
  body.cha-signin-page .cha-signin-main{
    padding:38px 16px 68px!important;
  }
  body.cha-signin-page .cha-signin-main .auth-card{
    padding:26px 24px!important;
  }
  body.cha-signin-page .cha-signin-main .brand-header{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:12px!important;
  }
  body.cha-signin-page .cha-signin-main .brand-pill{
    max-width:100%!important;
  }
}
@media (max-width:360px){
  body.cha-signin-page header#top .container-page{padding-left:16px!important;padding-right:16px!important;}
  body.cha-signin-page header#top a[href="/"]{max-width:128px!important;}
  body.cha-signin-page header#top a[href="/"] img{max-width:128px!important;}
  body.cha-signin-page header#top .flex.items-center.gap-2.shrink-0.ml-auto{gap:6px!important;max-width:calc(100vw - 154px)!important;}
  body.cha-signin-page header#top .cha-header-signin{padding:0 11px!important;font-size:12.5px!important;}
  body.cha-signin-page header#top button[aria-label*="Language"]{width:42px!important;min-width:42px!important;flex-basis:42px!important;}
  body.cha-signin-page header#top button[aria-label="Open menu"]{width:40px!important;min-width:40px!important;height:40px!important;flex-basis:40px!important;}
}

@media (max-width:640px){
  body.cha-signin-page .cha-auth-modal{
    padding-top:calc(18px + env(safe-area-inset-top))!important;
  }
  body.cha-signin-page .cha-auth-modal__backdrop{
    background:rgba(15,23,42,.32)!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;
  }
  body.cha-signin-page .cha-auth-modal__panel{
    border-radius:28px 28px 0 0!important;
    padding:24px 20px calc(22px + env(safe-area-inset-bottom))!important;
    max-height:calc(100dvh - 96px)!important;
    border-top:2px solid rgba(42,168,166,.55)!important;
  }
  body.cha-signin-page .cha-auth-modal__brand{
    max-width:calc(100% - 56px)!important;
    min-height:34px!important;
    font-size:12px!important;
  }
  body.cha-signin-page .cha-auth-modal__header h2{
    font-size:24px!important;
    letter-spacing:-.025em!important;
  }
  body.cha-signin-page .cha-auth-modal__header p{
    font-size:14px!important;
    line-height:1.58!important;
  }
  body.cha-signin-page .cha-auth-modal__actions{
    gap:10px!important;
    margin-top:16px!important;
  }
  body.cha-signin-page .cha-auth-modal__secondary,
  body.cha-signin-page .cha-auth-modal__submit{
    height:46px!important;
    border-radius:14px!important;
  }
}


/* CHA v16.3 — Standalone reset-password page mobile polish */
body.cha-password-reset-page .cha-signin-main{min-height:100dvh;padding-top:72px;}
body.cha-password-reset-page .cha-signin-main .auth-card{max-width:460px!important;}
body.cha-password-reset-page .cha-signin-main .auth-header__title{font-size:28px!important;}
body.cha-password-reset-page .cha-signin-main .auth-header__desc{max-width:34ch;}
@media (max-width:640px){
  body.cha-password-reset-page .cha-signin-main{padding:34px 16px 56px!important;align-items:flex-start!important;}
  body.cha-password-reset-page .cha-signin-main .auth-card{padding:24px 18px!important;border-radius:22px!important;}
  body.cha-password-reset-page .cha-signin-main .brand-header{gap:10px!important;}
  body.cha-password-reset-page .cha-signin-main .brand-header__logo img{height:26px!important;max-width:170px!important;}
  body.cha-password-reset-page .cha-signin-main .brand-pill{font-size:11.75px!important;padding:6px 10px!important;}
  body.cha-password-reset-page .cha-signin-main .auth-header__title{font-size:24px!important;line-height:1.14!important;}
  body.cha-password-reset-page .cha-signin-main .auth-header__desc{font-size:14px!important;line-height:1.58!important;}
  body.cha-password-reset-page .cha-signin-main .field__input{height:50px!important;font-size:16px!important;border-radius:14px!important;}
  body.cha-password-reset-page .cha-signin-main .btn-submit{height:50px!important;border-radius:14px!important;font-size:14px!important;}
  body.cha-password-reset-page .auth-access-note{margin-top:16px!important;font-size:13px!important;}
}


/* CHA Resources dropdown exact homepage match fix — /signin only.
   The previous auth CTA selector was also styling the Resources → Start Application menu item.
   Keep the dropdown menu items in the original homepage shape. */
body.cha-signin-page header#top nav [role="menu"] a[role="menuitem"]{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  padding:12px!important;
  margin:0!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:inherit!important;
  box-shadow:none!important;
  transform:none!important;
  text-align:left!important;
  white-space:normal!important;
  overflow:visible!important;
  font-weight:500!important;
  line-height:1.35!important;
}
body.cha-signin-page header#top nav [role="menu"] a[role="menuitem"]:hover,
body.cha-signin-page header#top nav [role="menu"] a[role="menuitem"]:focus-visible{
  background:var(--muted,#F1F5F9)!important;
  color:inherit!important;
  box-shadow:none!important;
  transform:none!important;
  outline:none!important;
}
body.cha-signin-page header#top nav [role="menu"] a[role="menuitem"] > span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  flex:0 0 36px!important;
  padding:0!important;
  border-radius:9999px!important;
  background:var(--primary-soft,#E8F4F4)!important;
  color:var(--primary,#0E7C7B)!important;
}
body.cha-signin-page header#top nav [role="menu"] a[role="menuitem"] svg{
  color:currentColor!important;
  stroke:currentColor!important;
}
body.cha-signin-page header#top nav [role="menu"] a[role="menuitem"] > span:last-child{
  min-width:0!important;
  flex:1 1 auto!important;
}


/* v1.7.13 — Footer brand logo refinement */
.cha-site-footer .cha-footer-brand img,
body.cha-signin-page footer .cha-footer-brand img,
footer .cha-footer-brand img{
  display:block!important;
  width:auto!important;
  height:32px!important;
  max-width:min(100%,220px)!important;
  object-fit:contain!important;
  object-position:left center!important;
  margin-bottom:18px!important;
}
@media (max-width:1100px){
  .cha-site-footer .cha-footer-brand img,
  body.cha-signin-page footer .cha-footer-brand img,
  footer .cha-footer-brand img{
    height:30px!important;
    max-width:min(100%,198px)!important;
  }
}
@media (max-width:720px){
  .cha-site-footer .cha-footer-brand img,
  body.cha-signin-page footer .cha-footer-brand img,
  footer .cha-footer-brand img{
    height:27px!important;
    max-width:min(100%,172px)!important;
    margin-bottom:14px!important;
  }
}

