/* UB_AUTH_LAYOUT_V16_CLEAN
   Fresh auth-only layout, replacing cumulative V9–V15 override rules.
   Does not change shared Unlock Bayi V8 wordmark, animation, forms, or visual content.
*/

/* Allow the decorative story to extend to its actual content height. */
html body .auth-login-v1-stage.auth-login-v1-stage {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin-top: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: #0e2747 !important;
  box-sizing: border-box !important;
}

/* One header in the natural document flow, never floating over cards. */
html body .auth-login-v1-stage.auth-login-v1-stage > .auth-login-v1-top {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: linear-gradient(180deg,#0d2341 0%,#122d51 100%) !important;
  transform: none !important;
  box-sizing: border-box !important;
}

html body .auth-login-v1-stage.auth-login-v1-stage > .auth-login-v1-top > a.auth-login-v1-brand {
  position: relative !important;
  inset: auto !important;
  display: inline-flex !important;
  flex: 0 1 auto !important;
  justify-content: center !important;
  align-items: center !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100% - 154px) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  float: none !important;
  transform: none !important;
  text-decoration: none !important;
}

html body .auth-login-v1-stage > .auth-login-v1-top > a.auth-login-v1-brand > .ub-global-brand-v7 {
  display: inline-flex !important;
  width: max-content !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  overflow: visible !important;
}

html body .auth-login-v1-stage.auth-login-v1-stage > .auth-login-v1-top > .auth-login-v1-status {
  position: absolute !important;
  inset: auto 14px auto auto !important;
  top: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: 140px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  color: #e0efff !important;
  background: rgba(11,33,63,.85) !important;
  border: 1px solid rgba(121,169,232,.22) !important;
  white-space: nowrap !important;
}

/* Restore the full image area: no extra top margin, border, or fixed parent cutoff. */
html body .auth-login-v1-stage.auth-login-v1-stage > .auth-login-v1-visual {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding-top: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* An older secondary logo still exists in auth templates; do not reveal it. */
html body:has(.auth-login-v1-stage) .auth-panel-brand {
  display: none !important;
}

/* Typography sizing is specific to authentication; global header unaffected. */
html body .auth-login-v1-brand .ub-v6-title {
  max-width: none !important;
  overflow: visible !important;
  padding-right: 12px !important;
  font-size: clamp(21px,2.5vw,26px) !important;
}
html body .auth-login-v1-brand .ub-v6-tagline {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 7.5px !important;
  letter-spacing: .11em !important;
}

/* Phone and tablet: two stacked lines above all service cards. */
@media (max-width: 900px) {
  html body .auth-login-v1-stage.auth-login-v1-stage {
    border-radius: 22px !important;
    height: auto !important;
    max-height: none !important;
  }
  html body .auth-login-v1-stage.auth-login-v1-stage > .auth-login-v1-top {
    position: relative !important;
    inset: auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px 10px 15px !important;
  }
  html body .auth-login-v1-stage.auth-login-v1-stage > .auth-login-v1-top > a.auth-login-v1-brand {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-self: center !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  html body .auth-login-v1-stage.auth-login-v1-stage > .auth-login-v1-top > .auth-login-v1-status {
    position: static !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    margin: 0 auto !important;
    transform: none !important;
    font-size: 10px !important;
  }
  html body .auth-login-v1-brand .ub-v6-title {
    font-size: clamp(18px,5vw,23px) !important;
    padding-right: 9px !important;
  }
  html body .auth-login-v1-brand .ub-v6-tagline {
    font-size: 6.7px !important;
    letter-spacing: .075em !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .auth-login-v1-brand .ub-global-brand-v7 *,
  html body .auth-login-v1-brand .ub-global-brand-v7 *::before,
  html body .auth-login-v1-brand .ub-global-brand-v7 *::after {
    animation: none !important;
  }
}
/* END UB_AUTH_LAYOUT_V16_CLEAN */
