/* Bid2Stay 29.0.9.3.2 — Production UI Integrity Hotfix
   Fixes mobile account drawer geometry and auth recovery input/contrast defects.
   Loaded last to defeat legacy cascade conflicts without changing application logic. */

/* ---------- Mobile public header / account drawer ---------- */
@media (max-width:820px){
  header.b2s-global-header[data-b2s-header-type="public"]{
    overflow:visible!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer{
    position:absolute!important;
    top:calc(100% + 10px)!important;
    right:12px!important;
    left:auto!important;
    width:min(320px,calc(100vw - 24px))!important;
    max-width:320px!important;
    min-width:0!important;
    margin:0!important;
    padding:10px!important;
    border:1px solid rgba(222,174,70,.34)!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#14252a 0%,#0f1d22 100%)!important;
    box-shadow:0 24px 60px rgba(2,10,16,.38)!important;
    max-height:calc(100svh - 102px)!important;
    overflow:auto!important;
    z-index:1602!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"].b2s-mobile-menu-open .b2s-mobile-drawer{
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
  }

  /* Force the actual navigation to remain available in the drawer. */
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-nav{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:3px!important;
    width:100%!important;
    padding:3px!important;
    margin:0!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-nav::before{
    content:"Explore"!important;
    padding:7px 9px 5px!important;
    color:#cfa84d!important;
    font-size:10px!important;
    font-weight:850!important;
    letter-spacing:.14em!important;
    text-transform:uppercase!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-nav>a{
    min-height:42px!important;
    padding:10px 11px!important;
    border-radius:10px!important;
    color:#f5f7f8!important;
    font-size:14px!important;
    font-weight:720!important;
    line-height:1.2!important;
    background:transparent!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-nav>a:hover,
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-nav>a:focus-visible{
    background:rgba(255,255,255,.065)!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-actions,
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer [data-b2s-public-actions]{
    width:100%!important;
    padding:9px 3px 3px!important;
    margin:0!important;
    border-top:1px solid rgba(255,255,255,.10)!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-actions::before,
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer [data-b2s-public-actions]::before{
    content:"Account"!important;
    padding:0 9px 7px!important;
    color:#cfa84d!important;
    font-size:10px!important;
    font-weight:850!important;
    letter-spacing:.14em!important;
    text-transform:uppercase!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-public-action-set{
    width:100%!important;
    gap:6px!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-public-action-set>a{
    min-height:42px!important;
    padding:10px 12px!important;
    border-radius:10px!important;
    font-size:14px!important;
    font-weight:800!important;
  }

  /* Prevent the backdrop from becoming a visually dominant gray veil. */
  header.b2s-global-header[data-b2s-header-type="public"].b2s-mobile-menu-open::after{
    background:rgba(4,12,17,.18)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  /* Authentication pages are single-purpose surfaces: no account drawer. */
  body.b2s-login-page header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-menu-toggle,
  body[data-auth-page="forgot-password"] header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-menu-toggle,
  body[data-auth-page="reset-password"] header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-menu-toggle{
    display:none!important;
  }
  body.b2s-login-page header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-header-inner,
  body[data-auth-page="forgot-password"] header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-header-inner,
  body[data-auth-page="reset-password"] header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-header-inner{
    grid-template-columns:1fr!important;
  }
}

@media (max-width:430px){
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer{
    right:10px!important;
    width:min(300px,calc(100vw - 20px))!important;
    max-width:300px!important;
    border-radius:16px!important;
  }
}

/* ---------- Password recovery / reset integrity ---------- */
body[data-auth-page="forgot-password"],
body[data-auth-page="reset-password"]{
  color-scheme:dark!important;
}

body[data-auth-page="forgot-password"] .b2s-auth-recovery-wrap,
body[data-auth-page="reset-password"] .b2s-auth-recovery-wrap{
  width:min(100%,620px)!important;
}

body[data-auth-page="forgot-password"] .b2s-auth-card.b2s-auth-recovery-card,
body[data-auth-page="reset-password"] .b2s-auth-card.b2s-auth-recovery-card{
  padding:clamp(24px,4vw,38px)!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,#0c1c2c 0%,#071423 100%)!important;
  border-color:rgba(225,173,62,.38)!important;
}

body[data-auth-page] .b2s-auth-recovery-brand{
  width:148px!important;
  opacity:1!important;
}
body[data-auth-page] .b2s-auth-recovery-brand img{
  opacity:1!important;
  filter:none!important;
}

body[data-auth-page] .b2s-auth-input-wrap{
  position:relative!important;
  display:block!important;
}
body[data-auth-page] .b2s-auth-input-icon{
  position:absolute!important;
  left:16px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:20px!important;
  height:20px!important;
  z-index:2!important;
  color:#617085!important;
  pointer-events:none!important;
}
body[data-auth-page] .b2s-auth-field input,
body[data-auth-page="forgot-password"] input,
body[data-auth-page="reset-password"] input{
  min-height:54px!important;
  height:54px!important;
  padding:0 16px 0 50px!important;
  border-radius:12px!important;
  border:1px solid #98a5b5!important;
  background:#fff!important;
  color:#102238!important;
  font-size:16px!important;
  font-weight:650!important;
  line-height:1.25!important;
  box-sizing:border-box!important;
}
body[data-auth-page] .b2s-auth-field input::placeholder,
body[data-auth-page="forgot-password"] input::placeholder,
body[data-auth-page="reset-password"] input::placeholder{
  color:#718096!important;
  opacity:1!important;
  font-weight:500!important;
}
body[data-auth-page] .b2s-auth-field input:focus{
  border-color:#e2ad3e!important;
  box-shadow:0 0 0 4px rgba(226,173,62,.16)!important;
  outline:none!important;
}

body[data-auth-page] .b2s-auth-helper{
  margin-top:20px!important;
  padding-top:16px!important;
  border-top:1px solid rgba(255,255,255,.12)!important;
}
body[data-auth-page] .b2s-auth-helper a{
  color:#f0c254!important;
  opacity:1!important;
  font-weight:800!important;
  text-decoration:none!important;
}
body[data-auth-page] .b2s-auth-helper a:last-child{
  color:#e5edf5!important;
}
body[data-auth-page] .b2s-auth-helper a:hover,
body[data-auth-page] .b2s-auth-helper a:focus-visible{
  color:#ffd66f!important;
  text-decoration:underline!important;
  text-underline-offset:4px!important;
}

@media (max-width:680px){
  body[data-auth-page] main.b2s-auth-shell.b2s-auth-recovery-shell{
    padding:16px 12px calc(32px + env(safe-area-inset-bottom))!important;
    min-height:calc(100svh - 68px)!important;
  }
  body[data-auth-page] .b2s-auth-card.b2s-auth-recovery-card{
    padding:22px 18px!important;
    border-radius:18px!important;
  }
  body[data-auth-page] .b2s-auth-recovery-topline{
    margin-bottom:20px!important;
  }
  body[data-auth-page] .b2s-auth-recovery-chip{
    font-size:10px!important;
    letter-spacing:.05em!important;
  }
  body[data-auth-page] .b2s-auth-recovery-card h1{
    font-size:clamp(30px,9vw,40px)!important;
    line-height:1.05!important;
  }
  body[data-auth-page] .b2s-auth-intro{
    margin:12px 0 20px!important;
    font-size:15px!important;
    line-height:1.55!important;
  }
  body[data-auth-page] .b2s-auth-helper{
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
  }
  body[data-auth-page] .b2s-auth-helper a{
    width:auto!important;
    min-height:36px!important;
    font-size:13px!important;
  }
}
