/* BITXELT HEALTH — Auth Responsive Patch 1.0
   Scoped to existing login components. No authentication logic changed. */
body.bx-auth.bx-auth-premium { overflow-x:hidden; }
.bx-auth-premium-shell, .bx-auth-premium-card, .bx-auth-premium-inner { min-width:0; }
.bx-auth-premium-head h1 {
  font-size:clamp(1.75rem,3.3vw,3.15rem);
  line-height:1.13; letter-spacing:-.035em;
  overflow-wrap:break-word; text-wrap:balance;
}
.bx-auth-premium-head p {font-size:clamp(.9rem,1.6vw,1.05rem);line-height:1.5;}
.bx-auth-video-copy, .bx-auth-video-copy strong {
  min-width:0; max-width:100%; overflow-wrap:anywhere;
}
.bx-auth-video-copy strong {
  display:block; font-size:clamp(1.3rem,2.15vw,2.3rem);
  line-height:1.22; font-weight:650;
}
.bx-auth-premium-form input, .bx-auth-premium-form button {max-width:100%;}
.bx-auth-premium-form .bx-auth-form {min-width:0;}
.bx-auth-company-logo-img {background-size:contain;background-position:center;background-repeat:no-repeat;}
@media(max-width:767px) {
  html,body.bx-auth.bx-auth-premium {width:100%;max-width:100%;overflow-x:hidden;}
  body.bx-auth.bx-auth-premium {background:#f4f7fb;}
  .bx-auth-premium-shell {
    display:block!important; width:100%!important;max-width:100%!important;
    min-height:100dvh!important;margin:0!important;padding:12px!important;
  }
  .bx-auth-video-panel {display:none!important;}
  .bx-auth-premium-card {
    width:100%!important;max-width:480px!important;min-height:0!important;
    margin:0 auto!important;border-radius:22px!important;
    overflow:visible!important;box-sizing:border-box!important;
  }
  .bx-auth-premium-inner {padding:24px 18px 22px!important;max-width:100%!important;}
  .bx-auth-premium-head {margin:0 0 20px!important;text-align:center;}
  .bx-auth-premium-head h1 {
    font-size:clamp(1.6rem,7vw,2.05rem)!important;
    line-height:1.14!important;letter-spacing:-.035em!important;
    margin:12px 0 8px!important;
  }
  .bx-auth-premium-head p {font-size:.93rem!important;line-height:1.45!important;margin:0!important;}
  .bx-auth-company-logo {margin:0 auto 10px!important;}
  .bx-auth-company-name {font-size:.83rem!important;}
  .bx-auth-company-rule {margin:8px auto 12px!important;}
  .bx-auth-premium-form {margin:0!important;}
  .bx-auth-form {display:flex;flex-direction:column;gap:0!important;}
  .bx-auth-form label {margin:10px 0 5px!important;}
  .bx-auth-form input {min-height:46px!important;}
  .bx-auth-form .btn.primary.wide {min-height:48px!important;margin-top:12px!important;}
  .bx-auth-inline-links {display:flex!important;flex-wrap:wrap;gap:8px 16px!important;margin:10px 0!important;}
  .bx-auth-powered {margin-top:20px!important;padding-top:12px!important;}
}
@media(max-width:360px) {
  .bx-auth-premium-shell {padding:8px!important;}
  .bx-auth-premium-inner {padding:18px 14px!important;}
}
@media(prefers-reduced-motion:reduce) {
  .bx-auth-premium-shell *, .bx-auth-premium-shell *::before,
  .bx-auth-premium-shell *::after {animation-duration:.01ms!important;transition-duration:.01ms!important;}
}

/* 5.7.4: preserve institutional logo proportions and fall back to monogram. */
.bx-auth-logo-container {position:relative!important;isolation:isolate;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;}
.bx-auth-logo-container .bx-auth-logo-fallback {position:absolute!important;inset:0;display:flex!important;align-items:center!important;justify-content:center!important;z-index:0;}
.bx-auth-logo-container .bx-auth-logo-image {position:relative!important;z-index:1!important;display:block!important;max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;object-fit:contain!important;background:#fff!important;border-radius:inherit!important;}
.bx-auth-logo-container .bx-auth-logo-no-image {position:relative!important;inset:auto!important;}

/* 5.7.5 — fail-safe image handling, clinic identity and desktop polish */
.bx-auth-logo-container .bx-auth-logo-image {visibility:hidden!important;opacity:0!important;}
.bx-auth-logo-container.bx-logo-ready .bx-auth-logo-image {visibility:visible!important;opacity:1!important;}
.bx-auth-logo-container.bx-logo-failed .bx-auth-logo-image {display:none!important;}
.bx-auth-logo-container .bx-auth-logo-fallback {visibility:visible!important;opacity:1!important;}
.bx-auth-logo-container.bx-logo-ready .bx-auth-logo-fallback {visibility:hidden!important;opacity:0!important;}
.bx-auth-premium-head h1 {max-width:100%;text-wrap:balance;}
.bx-auth-premium-head p {max-width:100%;overflow-wrap:break-word;}
.bx-auth-premium-card {min-width:0;}
.bx-auth-premium-form input {box-sizing:border-box;}
@media (min-width:768px) {
  .bx-auth-video-copy strong {font-size:clamp(1.4rem,2.2vw,2.5rem)!important;line-height:1.22!important;overflow-wrap:break-word;}
  .bx-auth-premium-head h1 {font-size:clamp(1.8rem,3vw,2.8rem)!important;line-height:1.15!important;}
}
@media (max-width:767px) {
  .bx-auth-premium-head h1 {font-size:clamp(1.55rem,6.6vw,2.05rem)!important;}
  .bx-auth-company-logo {max-width:100%!important;}
}
