/* HASOSAH AUTH V10 — responsive frosted glass card.
   CSS-only enhancement to the V7 login and MFA presentation.
   Intentionally does not alter forms, PHP/JS, Turnstile, or page background URLs. */

/* The V7 canvas used a fixed 1672x941 picture with a fixed-size 570x730 card.
   Replace its clipping/scaling with a true responsive, scrollable page. */
html:has(body.hs-v7) { min-height:100%; }
body.hs-v7 {
  margin:0!important;
  min-height:100dvh!important;
  overflow:hidden!important;
  background:#021327!important;
}
body.hs-v7 .hs-v7-view {
  position:fixed!important;
  inset:0!important;
  z-index:214!important;
  display:block!important;
  min-height:100dvh!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(125,230,255,.45) transparent;
}
body.hs-v7 .hs-v7-canvas,
body.hs-v7 .hs-v7-canvas[data-page] {
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  top:auto!important;
  width:100%!important;
  height:auto!important;
  min-height:100vh!important;
  min-height:100dvh!important;
  max-width:none!important;
  box-sizing:border-box!important;
  transform:none!important;
  overflow:hidden!important;
  direction:ltr!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:clamp(22px,3.2vw,52px) clamp(20px,5vw,96px)!important;
  background-color:#06182b!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  isolation:isolate;
}
body.hs-v7 .hs-v7-canvas::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(0,9,28,.17) 0%,rgba(1,14,34,.06) 58%,rgba(0,13,29,.15) 100%);
}
body.hs-v7 .hs-v7-canvas .hs-v7-snow {z-index:1;pointer-events:none;}
body.hs-v7 .hs-v7-glass,
body.hs-v7 .hs-v7-mfa,
body.hs-v7 .hs-v7-login {
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  top:auto!important;
  box-sizing:border-box!important;
  width:min(100%,560px)!important;
  min-width:0!important;
  height:auto!important;
  max-height:none!important;
  margin:0 0 0 clamp(0px,9vw,170px)!important;
  direction:rtl!important;
  padding:clamp(21px,2.2vw,31px) clamp(19px,2.5vw,34px)!important;
  overflow:visible!important;
  border-radius:clamp(25px,2.4vw,35px)!important;
  border:1px solid rgba(187,245,255,.57)!important;
  background:linear-gradient(160deg,
     rgba(26,75,111,.61) 0%,
     rgba(9,40,77,.71) 40%,
     rgba(4,31,64,.77) 78%,
     rgba(17,62,101,.69) 100%)!important;
  color:#f4fdff!important;
  box-shadow:
     inset 0 2px 1px rgba(255,255,255,.29),
     inset 0 0 20px rgba(126,230,255,.12),
     0 0 0 2px rgba(40,204,252,.11),
     0 0 35px rgba(30,210,255,.36),
     0 25px 72px rgba(0,9,25,.49)!important;
  backdrop-filter:blur(17px) saturate(1.2)!important;
  -webkit-backdrop-filter:blur(17px) saturate(1.2)!important;
  scrollbar-width:thin;
  scrollbar-color:rgba(135,239,255,.58) transparent;
  z-index:3!important;
}
body.hs-v7 .hs-v7-glass::before {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  z-index:0;
  background:
     radial-gradient(ellipse at 0 0,rgba(232,252,255,.24),transparent 28%),
     linear-gradient(120deg,rgba(227,252,255,.17),transparent 23%,transparent 73%,rgba(129,226,255,.12));
}
body.hs-v7 .hs-v7-glass::after {
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:inset 0 0 20px rgba(130,225,253,.08),inset 0 1px 4px rgba(229,254,255,.19);
  z-index:0;
}
body.hs-v7 .hs-v7-glass > * {position:relative;z-index:1;}
body.hs-v7 .hs-v7-brand {gap:5px;margin-bottom:12px;}
body.hs-v7 .hs-v7-brand-icon {
  box-shadow:0 0 0 1px rgba(209,250,255,.22),0 0 24px rgba(53,213,254,.54)!important;
}
body.hs-v7 .hs-v7-title {
  font-size:clamp(25px,2.25vw,34px)!important;
  line-height:1.28!important;
  margin:12px 0 5px!important;
  text-wrap:balance;
}
body.hs-v7 .hs-v7-subtitle {
  font-size:clamp(13px,1vw,15px)!important;
  line-height:1.8!important;
  margin:5px auto 14px!important;
}
body.hs-v7 form.hs-v7-live {
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}
body.hs-v7 form.hs-v7-live > * {max-width:100%;box-sizing:border-box;}
body.hs-v7 form.hs-v7-live :is(input[type=text],input[type=password],input[type=email],input[type=tel],input[type=number],select) {
  min-width:0!important;
  min-height:50px!important;
  border-radius:15px!important;
  background:rgba(73,153,203,.22)!important;
  border-color:rgba(181,238,255,.69)!important;
  box-shadow:inset 0 1px 9px rgba(159,233,255,.12),0 0 10px rgba(29,157,255,.13)!important;
}
body.hs-v7 form.hs-v7-live :is(button[type=submit],input[type=submit]) {
  min-height:54px!important;
  border-radius:15px!important;
  touch-action:manipulation;
}
body.hs-v7 .hs-v7-method-list {display:grid;gap:9px;margin:12px 0!important;}
body.hs-v7 .hs-v7-method {
  min-height:66px!important;
  height:auto!important;
  padding:9px 12px!important;
  border-radius:15px!important;
  box-shadow:inset 0 1px 7px rgba(165,242,255,.14),0 2px 12px rgba(0,11,31,.12)!important;
  touch-action:manipulation;
}
body.hs-v7 .hs-v7-method-copy {min-width:0;}
body.hs-v7 .hs-v7-method-copy strong {font-size:clamp(14px,1.05vw,17px);line-height:1.42;}
body.hs-v7 .hs-v7-method-copy small {font-size:clamp(11px,.8vw,12px);line-height:1.46;}
body.hs-v7 .hs-v7-back {min-height:48px;display:grid;align-items:center;justify-items:center;touch-action:manipulation;}
body.hs-v7 .hs-v7-mfa .hs-v7-brand {margin-bottom:6px!important;}
body.hs-v7 .hs-v7-mfa .hs-v7-title {margin-top:9px!important;}
body.hs-v7 .hs-v7-mfa .hs-v7-subtitle {margin-bottom:10px!important;}
/* prevent Turnstile from forcing the layout wider than the view */
body.hs-v7 .hs-v7-login .cf-turnstile {max-width:100%!important;min-width:0;}
body.hs-v7 .hs-v7-login .cf-turnstile :is(iframe,div) {max-width:100%;}

@media (max-width:1180px) {
  body.hs-v7 .hs-v7-canvas,
  body.hs-v7 .hs-v7-canvas[data-page] {
    justify-content:center!important;
    padding:24px clamp(14px,3.5vw,34px)!important;
    background-position:center center!important;
  }
  body.hs-v7 .hs-v7-glass {
    margin:0!important;
    width:min(100%,570px)!important;
  }
}
@media (max-width:600px) {
  body.hs-v7 .hs-v7-view {height:100dvh!important;}
  body.hs-v7 .hs-v7-canvas,
  body.hs-v7 .hs-v7-canvas[data-page] {
    min-height:100dvh!important;
    align-items:flex-start!important;
    padding:12px 10px max(22px,env(safe-area-inset-bottom))!important;
    background-position:52% center!important;
  }
  body.hs-v7 .hs-v7-glass {
    width:100%!important;
    margin:0!important;
    padding:18px 16px 19px!important;
    border-radius:23px!important;
    backdrop-filter:blur(14px) saturate(1.17)!important;
    -webkit-backdrop-filter:blur(14px) saturate(1.17)!important;
  }
  body.hs-v7 .hs-v7-brand-icon {width:47px;height:47px;font-size:23px;border-radius:14px;}
  body.hs-v7 .hs-v7-brand strong {font-size:18px;}
  body.hs-v7 .hs-v7-brand small {font-size:9px;letter-spacing:.16em;}
  body.hs-v7 .hs-v7-pill {font-size:10px;padding:5px 13px;margin-top:7px;}
  body.hs-v7 .hs-v7-title,body.hs-v7 .hs-v7-mfa .hs-v7-title {font-size:26px!important;margin:10px 0 5px!important;}
  body.hs-v7 .hs-v7-subtitle {font-size:12.5px!important;line-height:1.6!important;margin:4px auto 12px!important;}
  body.hs-v7 form.hs-v7-live label {font-size:13px!important;margin:10px 0 5px!important;}
  body.hs-v7 form.hs-v7-live :is(input[type=text],input[type=password],input[type=email],input[type=tel],input[type=number],select) {
    min-height:48px!important;font-size:16px!important;padding:10px 12px!important;
  }
  body.hs-v7 .hs-v7-method-list {gap:8px!important;}
  body.hs-v7 .hs-v7-method {min-height:61px!important;padding:8px 9px!important;gap:9px!important;}
  body.hs-v7 .hs-v7-method-icon {height:39px;width:39px;font-size:19px;border-radius:11px;}
  body.hs-v7 .hs-v7-method-copy strong {font-size:13.5px;}
  body.hs-v7 .hs-v7-method-copy small {font-size:10.5px;line-height:1.45;}
  body.hs-v7 .hs-v7-arrow {font-size:20px;}
  body.hs-v7 .hs-v7-foot-note {font-size:11px;padding:8px;margin-top:8px;}
  body.hs-v7 .hs-v7-back {margin-top:8px;font-size:14px;padding:11px;}
  body.hs-v7 .hs-v7-verify-head {font-size:18px;}
}
@media (max-width:360px) {
  body.hs-v7 .hs-v7-glass {padding:15px 12px!important;}
  body.hs-v7 .hs-v7-method-copy strong {font-size:12.5px;}
  body.hs-v7 .hs-v7-method-copy small {font-size:10px;}
  body.hs-v7 .hs-v7-login .cf-turnstile {transform:scale(.88);transform-origin:center top;margin-bottom:-7px;}
}
@media (max-height:740px) and (min-width:601px) {
  body.hs-v7 .hs-v7-canvas {align-items:flex-start!important;padding-top:18px!important;padding-bottom:22px!important;}
  body.hs-v7 .hs-v7-brand-icon {width:48px;height:48px;font-size:24px;}
  body.hs-v7 .hs-v7-brand {margin-bottom:8px;}
  body.hs-v7 .hs-v7-title {margin-top:8px!important;}
  body.hs-v7 .hs-v7-method {min-height:59px!important;}
  body.hs-v7 .hs-v7-method-list {gap:6px;}
}
@media (hover:none) {
  body.hs-v7 .hs-v7-method:hover {transform:none!important;filter:none!important;}
}
@media (prefers-reduced-motion:reduce) {
  body.hs-v7 .hs-v7-snow {animation:none!important;}
  body.hs-v7 .hs-v7-method,body.hs-v7 form.hs-v7-live button {transition:none!important;}
}
