/* P4 — Production route-only Login Desktop Authority.
 * Source: Core OTP DOM. No mutation of OTP/SMS/security/business rules.
 * Addresses live 2026-11-07 measured side panel 480x680 with 834px
 * scrollWidth and 827px scrollHeight, contradictory wallpaper/contrast rules.
 */
@media (min-width: 981px) {
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode,
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode.has-visual-background {
    box-sizing: border-box !important;
    direction: rtl !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: 1240px !important;
    min-height: 660px !important;
    height: auto !important;
    padding: 0 !important;
    margin: clamp(20px, 3vw, 46px) auto 44px !important;
    gap: 0 !important;
    border: 1px solid #d9e4ed !important;
    border-radius: 28px !important;
    background: #fff !important;
    box-shadow: 0 20px 70px rgba(8, 31, 52, .15) !important;
    overflow: hidden !important;
  }
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside {
    box-sizing: border-box !important;
    direction: rtl !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    position: relative !important;
    isolation: isolate !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 660px !important;
    margin: 0 !important;
    padding: 106px clamp(25px, 3vw, 44px) 38px !important;
    background-color: #09263d !important;
    background-image:
      linear-gradient(180deg, rgba(5, 26, 43, .60) 0%, rgba(6, 28, 46, .87) 48%, rgba(5, 23, 39, .97) 100%),
      var(--kbm-lx-hero-desktop) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: currentColor !important;
    overflow: hidden !important;
  }
  /* Earlier decorative ellipse was 180% wide, inflating scrollWidth to 834px. */
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside::after {
    content: none !important;
    display: none !important;
  }
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside :is(h2,p,li,strong,small,em) {
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    opacity: 1 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.45) !important;
  }
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside h2 {
    font-size: clamp(29px, 2.6vw, 40px) !important;
    line-height: 1.48 !important;
    margin: 12px 0 10px !important;
    font-weight: 900 !important;
    overflow-wrap: anywhere !important;
  }
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside p {
    max-width: 100% !important;
    line-height: 1.9 !important;
    font-size: 14px !important;
    margin: 0 0 14px !important;
  }
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside .kbm-gdb09-auth-benefits {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 10px 0 0 !important;
  }
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside .kbm-gdb09-auth-benefits li {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    padding: 9px 33px 9px 10px !important;
    border-radius: 12px !important;
    background: rgba(12, 43, 64, .86) !important;
    border: 1px solid rgba(255, 217, 97, .28) !important;
  }
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > .kbm-auth-recode-card {
    box-sizing: border-box !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 660px !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(27px, 3vw, 46px) !important;
    border: none !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
}
@media (min-width: 981px) and (max-height: 740px) {
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside {
    min-height: 610px !important;
    padding-top: 88px !important;
    padding-bottom: 25px !important;
  }
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > .kbm-auth-recode-card {min-height: 610px !important;}
}
@media (prefers-reduced-motion: reduce) {
  body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode * {animation-duration: .01ms !important;}
}

/* Mobile/tablet: prevent the combined Core + experience rules from producing
 * a 40px-wide aside (found in offline regression fixture at 390px). */
@media (max-width: 980px) {
 body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode,
 body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode.has-visual-background {
   box-sizing:border-box!important;
   direction:rtl!important;
   display:flex!important;
   flex-direction:column!important;
   align-items:stretch!important;
   justify-content:flex-start!important;
   width:min(540px,calc(100% - 24px))!important;
   min-width:0!important;
   max-width:540px!important;
   min-height:0!important;
   margin:16px auto 28px!important;
   padding:0!important;
   gap:0!important;
   background:#fff!important;
   border-radius:20px!important;
   overflow:hidden!important;
 }
 body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside{
   box-sizing:border-box!important;
   display:flex!important;
   position:relative!important;
   order:1!important;
   flex:0 0 auto!important;
   width:100%!important;
   min-width:0!important;
   max-width:100%!important;
   height:auto!important;
   min-height:205px!important;
   padding:75px 22px 22px!important;
   margin:0!important;
   background-color:#09283f!important;
   background-image:linear-gradient(180deg,rgba(5,26,43,.53),rgba(5,23,41,.96)),var(--kbm-lx-hero-mobile,var(--kbm-lx-hero-desktop))!important;
   background-size:cover!important;
   background-position:center!important;
   overflow:hidden!important;
 }
 body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside::after{display:none!important;content:none!important}
 body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside :is(h2,p,strong,small){color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
 body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside h2{font-size:clamp(20px,5vw,26px)!important;line-height:1.5!important;margin:8px 0!important}
 body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside p{font-size:12px!important;line-height:1.8!important}
 body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > aside.kbm-vr-auth-context.kbm-gdb09-auth-aside .kbm-gdb09-auth-benefits{display:none!important}
 body.kbm-login-cc-active #kbm-vr-auth.kbm-auth-recode > .kbm-auth-recode-card{
   box-sizing:border-box!important;
   order:2!important;
   flex:1 1 auto!important;
   display:flex!important;
   flex-direction:column!important;
   width:100%!important;
   min-width:0!important;
   max-width:100%!important;
   height:auto!important;
   min-height:0!important;
   margin:0!important;
   padding:24px clamp(16px,5vw,28px)!important;
   border:0!important;
   background:#fff!important;
   overflow:visible!important;
 }
}

/* A predictable OTP surface using the existing two-step controller. */
body #kbm-vr-auth.kbm-auth-recode-shell {
  align-items:stretch; border-radius:24px; overflow:hidden;
}
body #kbm-vr-auth .kbm-gdb09-auth-aside {background-color:#071a33; border-radius:0}
body #kbm-vr-auth .kbm-auth-recode-card {padding:clamp(18px,3vw,36px)!important; min-inline-size:0}
body #kbm-vr-auth .kbm-auth-recode-step[hidden] {display:none!important}
body #kbm-vr-auth :is(input[name="mobile"],input[name="otp"]) {
  min-height:52px; font-size:18px; direction:ltr; text-align:center; font-variant-numeric:tabular-nums;
}
body #kbm-vr-auth .kbm-auth-recode-btn {min-height:48px; border-radius:9px}
body #kbm-vr-auth .kbm-auth-recode-status {overflow-wrap:anywhere}
body #kbm-vr-auth :is(input,button,a):focus-visible {outline:3px solid #1859b8; outline-offset:2px}
@media(max-width:700px){body #kbm-vr-auth.kbm-auth-recode-shell{border-radius:16px}}
