/* UB_AUTH_DARK_V25 — public login, registration, forgot/reset + 2FA screens.
   Loaded only for customer auth routes, after legacy inline light-auth CSS.
   HTML forms, authentication behavior, backend and admin view are untouched. */
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 {
  --ub25-bg:#050d1f;
  --ub25-surface:#0a1d39;
  --ub25-field:#091c36;
  --ub25-outline:#315985;
  --ub25-muted:#a7c1e3;
  --ub25-blue:#287cff;
  color-scheme:dark!important;
  background:radial-gradient(ellipse 55% 43% at 90% 6%,rgba(19,87,183,.24),transparent 72%),
    radial-gradient(ellipse 54% 38% at 3% 82%,rgba(12,69,164,.18),transparent 75%),
    #050d1f!important;
  color:#eef6ff!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-shell-v4 {
  color-scheme:dark!important;
  background:transparent!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-story-v4 {
  color-scheme:dark!important;
  background:linear-gradient(143deg,#0b2243 0%,#07172d 57%,#0b2851 100%)!important;
  border-color:rgba(75,148,223,.38)!important;
  color:#ecf5ff!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 :is(.auth-story-v4,.auth-panel-v4) {
  box-shadow:0 20px 55px rgba(0,5,20,.35)!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-panel-v4 {
  color-scheme:dark!important;
  color:#eef6ff!important;
  background:linear-gradient(160deg,#0a1d39 0%,#07162b 100%)!important;
  border:1px solid rgba(69,136,212,.47)!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-panel-inner {
  color-scheme:dark!important;
  background:transparent!important;
  color:#edf6ff!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-card {
  color-scheme:dark!important;
  color:#eaf4ff!important;
  background:linear-gradient(156deg,#112a4c 0%,#0a1b35 57%,#0a2041 100%)!important;
  border:1px solid rgba(89,160,235,.47)!important;
  border-radius:20px!important;
  box-shadow:0 18px 46px rgba(0,5,20,.36),inset 0 1px 0 rgba(158,211,255,.09)!important;
  max-width:100%!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 :is(.auth-card-head h1,.auth-card-head h2,.ub20-form-heading h1,.ub20-form-heading h2) {
  color:#f7fbff!important;
  -webkit-text-fill-color:#f7fbff!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 :is(.auth-card-head>.eyebrow,.ub20-form-heading>.eyebrow,.auth-message .eyebrow) {
  color:#76c4ff!important;
  -webkit-text-fill-color:#76c4ff!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 :is(.auth-card-head>p:last-child,.ub20-form-heading>p,.auth-switch,.auth-privacy-note,.auth-trust-copy,.auth-trust-line,.check-row,.auth-form-help,.auth-foot,.auth-message>p) {
  color:#aac4e4!important;
  -webkit-text-fill-color:#aac4e4!important;
  opacity:1!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .form-stack label>span {
  color:#d9eaff!important;
  -webkit-text-fill-color:#d9eaff!important;
  opacity:1!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .form-stack :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  min-height:46px!important;
  color-scheme:dark!important;
  color:#f1f8ff!important;
  -webkit-text-fill-color:#f1f8ff!important;
  caret-color:#7fd3ff!important;
  background:#0a203d!important;
  background-color:#0a203d!important;
  border:1px solid #3a628d!important;
  border-radius:11px!important;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.21)!important;
  font-size:14px!important;
  opacity:1!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .form-stack :is(input:not([type="checkbox"]):not([type="radio"]),textarea)::placeholder {
  color:#8faed2!important;
  -webkit-text-fill-color:#8faed2!important;
  opacity:1!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .form-stack :is(input,select,textarea):focus-visible {
  border-color:#6dbbff!important;
  outline:2px solid rgba(75,158,255,.32)!important;
  outline-offset:1px!important;
  box-shadow:0 0 0 4px rgba(37,126,255,.12)!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .form-stack input:is(:-webkit-autofill,:-webkit-autofill:hover,:-webkit-autofill:focus,:-webkit-autofill:active) {
  color-scheme:dark!important;
  -webkit-text-fill-color:#f1f8ff!important;
  caret-color:#9be0ff!important;
  -webkit-box-shadow:0 0 0 1000px #0a203d inset!important;
  box-shadow:0 0 0 1000px #0a203d inset!important;
  border-color:#4b83b7!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .form-stack input:autofill {
  color:#f1f8ff!important;
  -webkit-text-fill-color:#f1f8ff!important;
  background-color:#0a203d!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .form-stack .check-row input[type="checkbox"] {
  color-scheme:dark!important;
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  accent-color:#328cff!important;
  flex:0 0 18px!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 :is(.auth-form-link a,.auth-switch a,.auth-secondary-form a,.auth-card a:not(.brand)) {
  color:#83c6ff!important;
  -webkit-text-fill-color:#83c6ff!important;
  text-decoration:none!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 :is(.auth-form-link a,.auth-switch a,.auth-secondary-form a,.auth-card a:not(.brand)):hover {
  color:#d1ebff!important;
  -webkit-text-fill-color:#d1ebff!important;
  text-decoration:underline!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-card :is(.button-primary,.button-wide[type="submit"],button[type="submit"].button) {
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  background:linear-gradient(115deg,#1767f8,#2d8cfd 52%,#1769ee)!important;
  background-size:220% 100%!important;
  border:1px solid #65baff!important;
  border-radius:12px!important;
  box-shadow:0 9px 26px rgba(25,105,240,.28),inset 0 1px 0 rgba(255,255,255,.21)!important;
  min-height:48px!important;
  transition:background-position .3s ease,box-shadow .3s ease,transform .3s ease!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-card :is(.button-primary,.button-wide[type="submit"],button[type="submit"].button):hover:not(:disabled) {
  background-position:100% 0!important;
  box-shadow:0 11px 28px rgba(25,105,240,.39)!important;
  transform:translateY(-1px)!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-card :is(.button-ghost,.button-secondary) {
  background:#102a4b!important;
  border:1px solid #447bad!important;
  color:#dbefff!important;
  -webkit-text-fill-color:#dbefff!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 :is(.form-error,.toast.error,.invalid-feedback,[role="alert"]) {
  color:#ffd5dd!important;
  -webkit-text-fill-color:#ffd5dd!important;
  background:rgba(125,36,61,.29)!important;
  border-color:rgba(255,119,153,.48)!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 :is(.toast.success,.form-success) {
  color:#b7f4d7!important;
  background:rgba(18,99,79,.24)!important;
  border-color:rgba(60,204,148,.5)!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 :is(.auth-trust-line,.auth-preview-security,.auth-visual-console,.auth-operations-preview,.auth-next-system) {
  color:#d9eaff!important;
  background-color:rgba(12,40,74,.55)!important;
  border-color:rgba(76,146,226,.34)!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 :is(.auth-preview-command,.auth-preview-stages article,.auth-proof>span) {
  color:#c4ddf9!important;
  border-color:rgba(93,160,232,.28)!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-locale :is(summary,button) {
  color:#e6f4ff!important;
  -webkit-text-fill-color:#e6f4ff!important;
  background:#112b4d!important;
  border:1px solid #457eaf!important;
  border-radius:11px!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-locale :is(.locale-switcher-menu,[role="menu"]) {
  color:#eaf5ff!important;
  background:#0d2444!important;
  border-color:#467faf!important;
  box-shadow:0 18px 38px rgba(0,0,0,.55)!important;
  z-index:1000!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-locale :is(.locale-switcher-menu,[role="menu"]) :is(button,a) {
  background:transparent!important;
  color:#d5e9ff!important;
  -webkit-text-fill-color:#d5e9ff!important;
}
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-locale :is(.locale-switcher-menu,[role="menu"]) :is(button,a):hover {
  background:#1a406f!important;
}
@media(max-width:850px) {
  html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-shell-v4 {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  html[data-theme="dark"] body.auth-body.auth-login-concept-v1 :is(.auth-panel-v4,.auth-story-v4,.auth-card) {
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:100%!important;
  }
  html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-card {
    border-radius:16px!important;
  }
}
@media(max-width:480px) {
  html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-card {
    padding:20px 16px!important;
  }
  html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-card :is(.auth-card-head h1,.auth-card-head h2,.ub20-form-heading h1) {
    font-size:clamp(24px,6.7vw,31px)!important;
    line-height:1.15!important;
  }
  html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .form-stack :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    font-size:16px!important; /* Avoid iOS focus zoom */
  }
}
@media(prefers-reduced-motion:reduce) {
  html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-card button {
    transition:none!important;transform:none!important;
  }
}
/* UB_AUTH_DARK_V25_END */

/* UB_AUTH_V26_UNIFIED_START
   Unlock Bayi / customer auth: one consistent dark layout for Login,
   Registration, Forgot Password, Reset Password and 2FA.
   Keep admin login untouched. No DOM changes / no changes to form actions.
*/
html body.auth-body.auth-login-concept-v1 {
  --ub26-canvas:#050e20;
  --ub26-panel:#081a32;
  --ub26-surface:#0d2544;
  --ub26-field:#091e38;
  --ub26-border:#315c8b;
  --ub26-text:#eff7ff;
  --ub26-muted:#a8c0de;
  --ub26-blue:#247af8;
  color-scheme:dark !important;
  color:var(--ub26-text) !important;
  background:radial-gradient(ellipse 52% 45% at 92% 7%,rgba(23,93,192,.18),transparent 76%),#050e20 !important;
  overflow-x:hidden !important;
}
html body.auth-body.auth-login-concept-v1 .auth-shell-v4 {
  box-sizing:border-box !important;
  max-width:1240px !important;
  min-width:0 !important;
  color-scheme:dark !important;
  background:transparent !important;
  overflow:visible !important;
}
/* The old auth stylesheet paints the whole RIGHT column white. Removing only
   the card's background cannot fix it: reset the column and its overlays. */
html body.auth-body.auth-login-concept-v1 .auth-panel-v4 {
  box-sizing:border-box !important;
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  min-width:0 !important;
  height:auto !important;
  color-scheme:dark !important;
  color:var(--ub26-text) !important;
  background:linear-gradient(160deg,#091e39 0%,#07152a 60%,#091a33 100%) !important;
  border:1px solid rgba(78,146,221,.38) !important;
  box-shadow:inset 1px 0 0 rgba(117,184,255,.07) !important;
  overflow:visible !important;
}
html body.auth-body.auth-login-concept-v1 .auth-panel-v4::before,
html body.auth-body.auth-login-concept-v1 .auth-panel-v4::after {
  content:none !important;
  display:none !important;
  background:none !important;
  box-shadow:none !important;
}
html body.auth-body.auth-login-concept-v1 .auth-panel-inner {
  box-sizing:border-box !important;
  position:relative !important;
  inset:auto !important;
  z-index:1 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:center !important;
  width:100% !important;
  max-width:570px !important;
  min-width:0 !important;
  padding:32px clamp(20px,3.5vw,38px) !important;
  margin:auto !important;
  transform:none !important;
  color:var(--ub26-text) !important;
  color-scheme:dark !important;
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
}
html body.auth-body.auth-login-concept-v1 .auth-panel-inner::before,
html body.auth-body.auth-login-concept-v1 .auth-panel-inner::after {
  background:none !important;
  box-shadow:none !important;
  pointer-events:none !important;
}
/* The old registration/login layout strips its card of padding. */
html body.auth-body.auth-login-concept-v1 .auth-panel-inner > .auth-card,
html body.auth-body.auth-login-concept-v1 .auth-panel-inner .auth-card {
  box-sizing:border-box !important;
  position:relative !important;
  inset:auto !important;
  transform:none !important;
  flex:0 1 auto !important;
  align-self:stretch !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  padding:clamp(23px,2.6vw,34px) !important;
  margin:0 !important;
  overflow:visible !important;
  color-scheme:dark !important;
  color:var(--ub26-text) !important;
  background:linear-gradient(150deg,#112b4d 0%,#0c213e 56%,#0a1a32 100%) !important;
  border:1px solid rgba(94,167,237,.43) !important;
  border-radius:20px !important;
  box-shadow:0 18px 48px rgba(0,6,21,.35),inset 0 1px 0 rgba(151,209,255,.09) !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card::before,
html body.auth-body.auth-login-concept-v1 .auth-card::after {
  pointer-events:none !important;
  background-color:transparent !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card-head,
html body.auth-body.auth-login-concept-v1 .ub20-form-heading {
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  max-width:100% !important;
  padding:0 !important;
  margin:0 0 22px !important;
  text-align:left !important;
  transform:none !important;
  background:transparent !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card-head :is(h1,h2),
html body.auth-body.auth-login-concept-v1 .ub20-form-heading :is(h1,h2) {
  font-size:clamp(29px,3.1vw,40px) !important;
  line-height:1.12 !important;
  letter-spacing:-.038em !important;
  margin:6px 0 6px !important;
  color:#f7fbff !important;
  -webkit-text-fill-color:#f7fbff !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card-head .eyebrow,
html body.auth-body.auth-login-concept-v1 .ub20-form-heading .eyebrow {
  margin:0 !important;
  color:#75baff !important;
  -webkit-text-fill-color:#75baff !important;
  font-size:11px !important;
  font-weight:800 !important;
  line-height:1.4 !important;
  letter-spacing:.10em !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card-head > p:last-child,
html body.auth-body.auth-login-concept-v1 .ub20-form-heading > p {
  margin:0 !important;
  color:#b6cbe7 !important;
  -webkit-text-fill-color:#b6cbe7 !important;
  font-size:13px !important;
  line-height:1.55 !important;
}
/* Keep existing two-column registration field groups; set sensible label/field sizes. */
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  row-gap:14px !important;
  column-gap:12px !important;
  color:var(--ub26-text) !important;
  background:transparent !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack label:not(.check-row) {
  box-sizing:border-box !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  color:#dbeaff !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack label:not(.check-row) > span {
  color:#c2d9f6 !important;
  -webkit-text-fill-color:#c2d9f6 !important;
  font-weight:700 !important;
  font-size:12px !important;
  line-height:1.4 !important;
  margin-bottom:6px !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:48px !important;
  min-height:48px !important;
  margin:0 !important;
  padding:10px 14px !important;
  color-scheme:dark !important;
  color:#edf6ff !important;
  -webkit-text-fill-color:#edf6ff !important;
  caret-color:#82cdff !important;
  background:#091f3a !important;
  background-color:#091f3a !important;
  background-image:none !important;
  border:1px solid #376394 !important;
  border-radius:11px !important;
  box-shadow:inset 0 1px 2px rgba(0,5,18,.35) !important;
  font-size:15px !important;
  line-height:1.3 !important;
  opacity:1 !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack textarea {
  height:auto !important;
  min-height:100px !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack select {
  appearance:auto !important;
  -webkit-appearance:menulist !important;
  padding-right:27px !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack select option {
  background:#0b2342 !important;
  color:#edf6ff !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack :is(input,select,textarea):focus-visible {
  border-color:#73bfff !important;
  outline:2px solid rgba(61,157,255,.3) !important;
  outline-offset:1px !important;
  box-shadow:0 0 0 3px rgba(37,122,255,.14) !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack :is(input,textarea)::placeholder {
  color:#85a9ce !important;
  -webkit-text-fill-color:#85a9ce !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack input:-webkit-autofill,
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack input:-webkit-autofill:hover,
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack input:-webkit-autofill:focus {
  -webkit-box-shadow:0 0 0 1000px #091f3a inset !important;
  box-shadow:0 0 0 1000px #091f3a inset !important;
  -webkit-text-fill-color:#edf6ff !important;
  caret-color:#82cdff !important;
  color-scheme:dark !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack .check-row {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:flex-start !important;
  gap:9px !important;
  margin:5px 0 1px !important;
  color:#b2c9e6 !important;
  font-size:12px !important;
  line-height:1.55 !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack .check-row > span {
  color:#b2c9e6 !important;
  -webkit-text-fill-color:#b2c9e6 !important;
  line-height:1.5 !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .form-stack .check-row input[type="checkbox"] {
  flex:0 0 18px !important;
  width:18px !important;
  height:18px !important;
  min-height:18px !important;
  margin:1px 0 0 !important;
  padding:0 !important;
  accent-color:#2d83ff !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .auth-form-link {
  margin:6px 0 0 !important;
  text-align:right !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card .auth-switch {
  box-sizing:border-box !important;
  max-width:100% !important;
  margin:18px 0 0 !important;
  padding:13px 0 0 !important;
  text-align:center !important;
  border-top:1px solid rgba(130,177,226,.19) !important;
  background:transparent !important;
  color:#b3c8e3 !important;
  -webkit-text-fill-color:#b3c8e3 !important;
  font-size:13px !important;
  line-height:1.55 !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card :is(.auth-switch a,.auth-form-link a,.auth-secondary-form a) {
  color:#80c4ff !important;
  -webkit-text-fill-color:#80c4ff !important;
  font-weight:750 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  text-decoration:none !important;
}
/* The legacy login style renders 'Sign up' as a white full-width button. */
html body.auth-body.auth-login-concept-v1 .auth-card a:is(.button,.button-secondary,.button-ghost,.ub20-alt-action,.ub20-secondary-action),
html body.auth-body.auth-login-concept-v1 .auth-card .auth-secondary-form .button {
  color:#cfe8ff !important;
  -webkit-text-fill-color:#cfe8ff !important;
  background:#112c4e !important;
  border:1px solid #457eb5 !important;
  border-radius:11px !important;
  box-shadow:none !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card :is(button[type="submit"],.button-primary) {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  min-height:48px !important;
  height:auto !important;
  padding:12px 15px !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  background:linear-gradient(105deg,#1765ed,#2886ff 56%,#1768ee) !important;
  background-size:190% 100% !important;
  border:1px solid rgba(114,184,255,.75) !important;
  border-radius:11px !important;
  box-shadow:0 8px 20px rgba(24,101,236,.25),inset 0 1px 0 rgba(255,255,255,.18) !important;
  font-weight:800 !important;
  font-size:14px !important;
  line-height:1.3 !important;
  transition:background-position .2s ease,transform .2s ease,box-shadow .2s ease !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card button[type="submit"]:hover:not(:disabled) {
  background-position:100% 0 !important;
  transform:translateY(-1px) !important;
  box-shadow:0 10px 25px rgba(24,101,236,.34) !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card :is(.form-error,.toast.error,[role="alert"]) {
  color:#ffccd5 !important;
  background:rgba(123,36,58,.28) !important;
  border:1px solid rgba(245,121,155,.44) !important;
}
html body.auth-body.auth-login-concept-v1 .auth-card :is(.form-success,.toast.success) {
  color:#b4f2d4 !important;
  background:rgba(20,101,74,.27) !important;
  border:1px solid rgba(69,213,151,.4) !important;
}
html body.auth-body.auth-login-concept-v1 :is(.auth-panel-brand,.auth-trust-line,.auth-privacy-note,.auth-locale) {
  color:#c9def7 !important;
  -webkit-text-fill-color:#c9def7 !important;
}
/* The admin login does not have the auth-login-concept-v1 class. */
@media (min-width:981px) {
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner { max-width:570px !important; }
  html body.auth-body.auth-login-concept-v1.auth-register-page .auth-panel-inner { max-width:680px !important; }
  html body.auth-body.auth-login-concept-v1.auth-register-page .auth-card {
    padding:25px 30px !important;
  }
}
@media (max-width:980px) {
  html body.auth-body.auth-login-concept-v1 .auth-shell-v4 {
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    width:min(100%,720px) !important;
    min-height:100dvh !important;
    margin:0 auto !important;
    padding:18px 14px !important;
    gap:0 !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-story-v4 {
    display:none !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-v4 {
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    min-height:auto !important;
    padding:0 !important;
    margin:0 !important;
    border-radius:20px !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner {
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    padding:22px 18px !important;
    margin:0 auto !important;
  }
}
@media (max-width:600px) {
  html body.auth-body.auth-login-concept-v1 .auth-shell-v4 { padding:10px !important; }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner { padding:18px 12px !important; }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .auth-card {
    padding:22px 18px !important;
    border-radius:16px !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-card-head,
  html body.auth-body.auth-login-concept-v1 .ub20-form-heading { margin-bottom:19px !important; }
  html body.auth-body.auth-login-concept-v1 .auth-card-head :is(h1,h2),
  html body.auth-body.auth-login-concept-v1 .ub20-form-heading :is(h1,h2) {
    font-size:clamp(28px,7vw,34px) !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-card .form-stack :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    font-size:16px !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-card .form-stack :is(.form-grid,.form-row,.fields-row) {
    min-width:0 !important;
    max-width:100% !important;
  }
}
@media (max-width:390px) {
  html body.auth-body.auth-login-concept-v1 .auth-card .form-stack :is(.form-grid,.form-row,.fields-row) {
    grid-template-columns:minmax(0,1fr) !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  html body.auth-body.auth-login-concept-v1 .auth-card button[type="submit"] {
    transition:none !important;
    transform:none !important;
  }
}
/* UB_AUTH_V26_UNIFIED_END */

/* UB_AUTH_V27_START — customer auth only, after the legacy CSS.
   The legacy auth inline style is now rendered ONLY on light/admin auth pages. */
html body.auth-body.auth-login-concept-v1,
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 {
  color-scheme:dark !important;
  background-color:#050e20 !important;
}
/* Fix the entire RIGHT column, not just the dark form card inside it. */
html body.auth-body.auth-login-concept-v1 section.auth-panel.auth-panel-v4,
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 section.auth-panel.auth-panel-v4,
html body.auth-body.auth-login-concept-v1.auth-login-page section.auth-panel.auth-panel-v4,
html[data-theme="dark"] body.auth-body.auth-login-concept-v1.auth-login-page section.auth-panel.auth-panel-v4,
html body.auth-body.auth-login-concept-v1.auth-login-page .auth-shell-v4 > section.auth-panel.auth-panel-v4,
html body.auth-body.auth-login-concept-v1.auth-register-page .auth-shell-v4 > section.auth-panel.auth-panel-v4,
html[data-theme="dark"] body.auth-body.auth-login-concept-v1.auth-login-page .auth-shell-v4 > section.auth-panel.auth-panel-v4 {
  position:relative !important;
  isolation:isolate !important;
  z-index:1 !important;
  color-scheme:dark !important;
  color:#edf6ff !important;
  background:#08172d !important;
  background-color:#08172d !important;
  background-image:linear-gradient(155deg,#102948 0%,#07192f 52%,#08172e 100%) !important;
  border-color:rgba(78,151,227,.35) !important;
  overflow:visible !important;
}
html body.auth-body.auth-login-concept-v1 section.auth-panel.auth-panel-v4::before,
html body.auth-body.auth-login-concept-v1 section.auth-panel.auth-panel-v4::after {
  content:none !important;
  display:none !important;
  background:none !important;
}
html body.auth-body.auth-login-concept-v1 section.auth-panel.auth-panel-v4 > .auth-panel-inner,
html body.auth-body.auth-login-concept-v1 section.auth-panel.auth-panel-v4 > .auth-panel-inner::before,
html body.auth-body.auth-login-concept-v1 section.auth-panel.auth-panel-v4 > .auth-panel-inner::after {
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
}
html body.auth-body.auth-login-concept-v1 section.auth-panel.auth-panel-v4 .auth-panel-inner > .auth-card {
  box-sizing:border-box !important;
  max-width:100% !important;
  margin:0 auto !important;
  padding:clamp(22px,2.5vw,32px) !important;
  color-scheme:dark !important;
  color:#e9f5ff !important;
  background:linear-gradient(145deg,#10294a,#0a1e3a) !important;
  border:1px solid #346393 !important;
  border-radius:20px !important;
}
/* Native LANGUAGE select was still light: override old select-specific rules. */
html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-card select,
html[data-theme="dark"] body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-card select,
html body.auth-body.auth-login-concept-v1.auth-register-page .auth-panel-v4 .auth-card select {
  box-sizing:border-box !important;
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-height:48px !important;
  padding:11px 36px 11px 14px !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  color-scheme:dark !important;
  color:#f2f8ff !important;
  -webkit-text-fill-color:#f2f8ff !important;
  background-color:#091f3a !important;
  background-image:linear-gradient(45deg,transparent 50%,#8bcaff 50%),linear-gradient(135deg,#8bcaff 50%,transparent 50%) !important;
  background-position:calc(100% - 19px) 50%,calc(100% - 13px) 50% !important;
  background-size:6px 6px,6px 6px !important;
  background-repeat:no-repeat !important;
  border:1px solid #3a6a9e !important;
  border-radius:11px !important;
  box-shadow:inset 0 1px 2px rgba(0,6,20,.3) !important;
  font-size:15px !important;
  opacity:1 !important;
}
html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-card select option {
  color:#f2f8ff !important;
  background:#0b2544 !important;
}
html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-card select:focus-visible {
  border-color:#83c9ff !important;
  outline:2px solid rgba(75,159,255,.3) !important;
  outline-offset:1px !important;
}
/* Old login alternates are rendered as an oversized WHITE secondary CTA. */
html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-card :is(.ub20-alt-action,.ub20-secondary-action,.ub20-secondary,.button-secondary,.button-ghost),
html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-card :is(.ub20-alt-action,.ub20-secondary-action) a {
  color:#d2eaff !important;
  -webkit-text-fill-color:#d2eaff !important;
  background:#103052 !important;
  background-color:#103052 !important;
  background-image:none !important;
  border:1px solid #417eb7 !important;
  border-radius:11px !important;
  box-shadow:none !important;
}
html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-card :is(.ub20-alt-action,.ub20-secondary-action,.ub20-secondary) {
  background-color:#103052 !important;
}
html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-card :is(.ub20-alt-action,.ub20-secondary-action) a,
html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-card a.ub20-secondary {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:46px !important;
  text-decoration:none !important;
}
/* Registration is naturally taller than a laptop viewport; allow scrolling. */
html body.auth-body.auth-login-concept-v1.auth-register-page .auth-panel-v4 {
  justify-content:flex-start !important;
  height:auto !important;
  min-height:0 !important;
}
html body.auth-body.auth-login-concept-v1.auth-register-page .auth-panel-inner {
  margin:0 auto !important;
  padding-top:22px !important;
  padding-bottom:22px !important;
}
html body.auth-body.auth-login-concept-v1.auth-register-page .auth-card .form-stack {
  row-gap:11px !important;
}
html body.auth-body.auth-login-concept-v1.auth-register-page .auth-card .form-stack label:not(.check-row) > span {
  margin-bottom:4px !important;
}
@media (max-width:980px) {
  html body.auth-body.auth-login-concept-v1 .auth-shell-v4,
  html body.auth-body.auth-login-concept-v1 .auth-panel-v4,
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner {
    min-width:0 !important;
    max-width:100% !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-v4 {
    width:100% !important;
  }
}
@media (max-width:480px) {
  html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-card { padding:22px 17px !important; }
  html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-card select { font-size:16px !important; }
}
/* UB_AUTH_V27_END */

/* UB_AUTH_V28_CSS_START */
/* Only login and registration, not password reset or admin. A runtime style
   correction also protects the real panel from old high-specificity rules. */
html body.auth-body.auth-login-concept-v1:is(.auth-login-page,.auth-register-page)
:is(.auth-panel-v4,.auth-panel-inner)::before,
html body.auth-body.auth-login-concept-v1:is(.auth-login-page,.auth-register-page)
:is(.auth-panel-v4,.auth-panel-inner)::after {
  content:none !important;
  display:none !important;
  background:none !important;
  box-shadow:none !important;
}
html body.auth-body.auth-login-concept-v1:is(.auth-login-page,.auth-register-page) .auth-panel-v4,
html body.auth-body.auth-login-concept-v1:is(.auth-login-page,.auth-register-page) section.auth-panel-v4 {
  background-color:#08182e !important;
  background-image:linear-gradient(155deg,#102b4e 0%,#08192f 57%,#071529 100%) !important;
  color-scheme:dark !important;
}
html body.auth-body.auth-login-concept-v1:is(.auth-login-page,.auth-register-page) .auth-panel-inner {
  background:transparent !important;
}
html body.auth-body.auth-login-concept-v1.auth-register-page .auth-card .form-stack select {
  background-color:#091f3a !important;
  color:#eff7ff !important;
  -webkit-text-fill-color:#eff7ff !important;
  color-scheme:dark !important;
  border-color:#3f739f !important;
}
html body.auth-body.auth-login-concept-v1.auth-register-page .auth-card .form-stack select option {
  background:#0c2443 !important;
  color:#eff7ff !important;
}
/* UB_AUTH_V28_CSS_END */

/* UB_AUTH_V29_MOBILE_START */
/* Mobile-only. Customer public auth routes only; never the administrator login.
   Intentionally does not touch desktop selectors or V28 dark panel runtime. */
@media (max-width:980px) {
  html body.auth-body.auth-login-concept-v1 {
    min-width:0 !important;
    overflow-x:clip !important;
    color-scheme:dark !important;
    background-color:#050e20 !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-shell-v4 {
    box-sizing:border-box !important;
    display:block !important;
    width:100% !important;
    max-width:740px !important;
    min-width:0 !important;
    min-height:100svh !important;
    margin:0 auto !important;
    padding:clamp(12px,2.8vw,22px) !important;
    overflow:visible !important;
    background:transparent !important;
  }
  /* Marketing sidebar is replaced by the compact existing panel brand. */
  html body.auth-body.auth-login-concept-v1 .auth-shell-v4 > .auth-story-v4 {
    display:none !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-shell-v4 > .auth-panel-v4,
  html body.auth-body.auth-login-concept-v1 section.auth-panel.auth-panel-v4 {
    box-sizing:border-box !important;
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    height:auto !important;
    padding:0 !important;
    margin:0 !important;
    overflow:visible !important;
    border:1px solid rgba(85,153,226,.42) !important;
    border-radius:22px !important;
    background-color:#081a31 !important;
    color-scheme:dark !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-panel-inner {
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    align-items:stretch !important;
    width:100% !important;
    max-width:640px !important;
    min-width:0 !important;
    height:auto !important;
    margin:0 auto !important;
    padding:clamp(16px,3.5vw,27px) !important;
    overflow:visible !important;
    background:transparent !important;
    box-shadow:none !important;
    transform:none !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner > .auth-panel-brand {
    box-sizing:border-box !important;
    display:inline-flex !important;
    align-self:center !important;
    align-items:center !important;
    justify-content:center !important;
    max-width:min(100%,260px) !important;
    margin:0 auto 12px !important;
    padding:0 !important;
    min-height:0 !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner > .auth-panel-brand :is(img,svg) {
    max-width:100% !important;
    max-height:54px !important;
    height:auto !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner > .auth-trust-line {
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 0 14px !important;
    padding:10px 12px !important;
    font-size:12px !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .auth-card {
    box-sizing:border-box !important;
    position:relative !important;
    align-self:stretch !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    height:auto !important;
    padding:clamp(19px,3.8vw,29px) !important;
    margin:0 !important;
    border-radius:17px !important;
    overflow:visible !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .auth-card-head,
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .ub20-form-heading {
    box-sizing:border-box !important;
    max-width:100% !important;
    text-align:left !important;
    margin:0 0 18px !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .auth-card-head :is(h1,h2),
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .ub20-form-heading :is(h1,h2) {
    font-size:clamp(27px,6.4vw,36px) !important;
    line-height:1.15 !important;
    overflow-wrap:anywhere !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .auth-card :is(.form-stack,.field-pair,.form-grid,.form-row) {
    box-sizing:border-box !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .auth-card .form-stack {
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    gap:13px !important;
    padding:0 !important;
    margin:0 !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-card .form-stack :is(label, .field-pair > label, .form-row > label) {
    box-sizing:border-box !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-card .form-stack :is(input:not([type="checkbox"]):not([type="radio"]), select,textarea) {
    box-sizing:border-box !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    min-height:49px !important;
    font-size:16px !important; /* iOS focus zoom prevention */
    line-height:1.35 !important;
    border-radius:11px !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-card .form-stack select {
    padding-right:38px !important;
    color-scheme:dark !important;
    background-color:#091f3a !important;
    color:#eff7ff !important;
    -webkit-text-fill-color:#eff7ff !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-card .form-stack select option {
    color:#eff7ff !important;
    background-color:#0b2443 !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-card :is(button[type="submit"],.button-primary,.ub20-secondary) {
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    min-height:49px !important;
    padding:12px 14px !important;
    font-size:14px !important;
    text-align:center !important;
    white-space:normal !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner > .auth-privacy-note {
    width:100% !important;
    max-width:100% !important;
    margin:14px 0 0 !important;
    padding:0 4px !important;
    text-align:center !important;
    overflow-wrap:anywhere !important;
  }
  /* OTP/status messages still remain visible; no validation element is hidden. */
}
@media (max-width:640px) {
  html body.auth-body.auth-login-concept-v1 .auth-shell-v4 {
    max-width:100% !important;
    padding:10px !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-panel-inner {
    max-width:100% !important;
    padding:17px 13px !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .auth-card {
    padding:21px 17px !important;
    border-radius:16px !important;
  }
  /* Actual registration template uses .field-pair for the grouped fields. */
  html body.auth-body.auth-login-concept-v1 .auth-card .form-stack :is(.field-pair,.form-grid,.fields-row,.form-row) {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:13px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-card .form-stack :is(.field-pair,.form-grid,.fields-row,.form-row) > * {
    box-sizing:border-box !important;
    grid-column:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    width:100% !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-card .auth-switch {
    text-align:center !important;
    margin:16px 0 0 !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-card .auth-password-hint {
    margin:0 !important;
    font-size:12px !important;
    line-height:1.45 !important;
    color:#a9c3e4 !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .auth-card .form-stack .check-row {
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start !important;
    flex-wrap:nowrap !important;
    gap:9px !important;
    min-width:0 !important;
  }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .auth-card .form-stack .check-row input[type="checkbox"] {
    box-sizing:border-box !important;
    width:18px !important;
    min-width:18px !important;
    max-width:18px !important;
    height:18px !important;
    min-height:18px !important;
    flex:0 0 18px !important;
  }
}
@media (max-width:375px) {
  html body.auth-body.auth-login-concept-v1 .auth-shell-v4 { padding:7px !important; }
  html body.auth-body.auth-login-concept-v1 .auth-panel-v4 .auth-panel-inner { padding:14px 10px !important; }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .auth-card { padding:18px 13px !important; }
  html body.auth-body.auth-login-concept-v1 .auth-panel-inner .auth-card-head :is(h1,h2) { font-size:27px !important; }
}
@media (prefers-reduced-motion:reduce) and (max-width:980px) {
  html body.auth-body.auth-login-concept-v1 .auth-card :is(button,a) {
    animation:none !important;
    transition:none !important;
  }
}
/* UB_AUTH_V29_MOBILE_END */

/* UB30_CUSTOMER_OTP_START */
/* Scoped to the customer 2FA template via its isolated ub30-otp-card marker.
   NEVER the admin 2FA view. Does not touch form methods, names, validation or OTP logic. */
html body.auth-body:has(.ub30-otp-card) {
  color-scheme:dark !important;
  color:#eef5ff !important;
  background:#050e20 !important;
  overflow-x:clip !important;
}
html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 {
  box-sizing:border-box !important;
  background:#091b33 !important;
  color:#eef5ff !important;
  overflow:visible !important;
}
html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 :is(.auth-panel-v4,section.auth-panel-v4) {
  box-sizing:border-box !important;
  background:#081a32 !important;
  background-image:linear-gradient(165deg,#0b2240,#071629) !important;
  color:#eef5ff !important;
  min-width:0 !important;
}
html body.auth-body:has(.ub30-otp-card) .auth-panel-v4 .auth-panel-inner {
  box-sizing:border-box !important;
  background:transparent !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow:visible !important;
}
html body.auth-body .auth-card.ub30-otp-card {
  box-sizing:border-box !important;
  width:min(100%,480px) !important;
  max-width:480px !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  margin-inline:auto !important;
  padding:clamp(23px,3vw,34px) !important;
  border:1px solid rgba(103,177,255,.42) !important;
  border-radius:22px !important;
  background:#0d2442 !important;
  background-image:linear-gradient(155deg,#112b4d 0%,#091a33 100%) !important;
  color:#f0f7ff !important;
  box-shadow:0 20px 45px rgba(0,0,0,.28) !important;
  overflow:visible !important;
}
html body.auth-body .auth-card.ub30-otp-card .auth-card-head {
  box-sizing:border-box !important;
  margin:0 0 23px !important;
  text-align:left !important;
  color:#f0f7ff !important;
}
html body.auth-body .auth-card.ub30-otp-card .auth-card-head :is(h1,h2) {
  color:#f3f8ff !important;
  font-size:clamp(28px,3vw,36px) !important;
  letter-spacing:-.03em !important;
  line-height:1.14 !important;
  overflow-wrap:anywhere !important;
}
html body.auth-body .auth-card.ub30-otp-card .auth-card-head p,
html body.auth-body .auth-card.ub30-otp-card .form-stack label > span,
html body.auth-body .auth-card.ub30-otp-card .auth-switch {
  color:#bbd2eb !important;
  -webkit-text-fill-color:#bbd2eb !important;
}
html body.auth-body .auth-card.ub30-otp-card .form-stack {
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:0 !important;
  margin:0 !important;
}
html body.auth-body .auth-card.ub30-otp-card .form-stack label {
  display:block !important;
  box-sizing:border-box !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}
html body.auth-body .auth-card.ub30-otp-card input[name="code"] {
  box-sizing:border-box !important;
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-height:53px !important;
  height:53px !important;
  padding:12px 16px !important;
  border:1px solid #315a85 !important;
  border-radius:12px !important;
  outline:0 !important;
  background:#071c35 !important;
  background-image:none !important;
  color:#f2f8ff !important;
  -webkit-text-fill-color:#f2f8ff !important;
  caret-color:#70c4ff !important;
  font-size:16px !important;
  letter-spacing:.06em !important;
  box-shadow:none !important;
  -webkit-appearance:none !important;
}
html body.auth-body .auth-card.ub30-otp-card input[name="code"]:focus-visible {
  outline:2px solid rgba(95,184,255,.7) !important;
  outline-offset:1px !important;
  border-color:#65b5ff !important;
}
html body.auth-body .auth-card.ub30-otp-card input[name="code"]:-webkit-autofill {
  -webkit-box-shadow:0 0 0 100px #071c35 inset !important;
  -webkit-text-fill-color:#f2f8ff !important;
}
html body.auth-body .auth-card.ub30-otp-card :is(.button-primary,button[type="submit"].button) {
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:51px !important;
  padding:12px 15px !important;
  border:1px solid rgba(104,180,255,.7) !important;
  border-radius:12px !important;
  background:linear-gradient(105deg,#1766ed,#2a8cff) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:15px !important;
  font-weight:750 !important;
  box-shadow:0 8px 23px rgba(18,102,229,.24) !important;
}
html body.auth-body .auth-card.ub30-otp-card .button-ghost,
html body.auth-body:has(.ub30-otp-card) .auth-secondary-form .button-ghost {
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:47px !important;
  padding:10px 15px !important;
  border:1px solid #315d89 !important;
  border-radius:12px !important;
  background:#102e51 !important;
  color:#b8dfff !important;
  -webkit-text-fill-color:#b8dfff !important;
  box-shadow:none !important;
}
html body.auth-body:has(.ub30-otp-card) .auth-secondary-form {
  width:min(100%,480px) !important;
  max-width:480px !important;
  min-width:0 !important;
  margin:13px auto 0 !important;
  padding:0 !important;
}
html body.auth-body .auth-card.ub30-otp-card :is(.form-error,[role="alert"]) {
  border-radius:10px !important;
  background:#381d32 !important;
  border:1px solid #965172 !important;
  color:#ffe2ea !important;
  -webkit-text-fill-color:#ffe2ea !important;
}
@media(max-width:980px) {
  html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 {
    box-sizing:border-box !important;
    width:100% !important;
    max-width:740px !important;
    min-width:0 !important;
    min-height:100svh !important;
    margin:0 auto !important;
    padding:clamp(10px,2vw,20px) !important;
    display:block !important;
  }
  html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 > .auth-story-v4 {display:none !important;}
  html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 > .auth-panel-v4 {
    display:flex !important;
    flex-direction:column !important;
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 !important;
    padding:clamp(13px,3vw,24px) !important;
  }
  html body.auth-body:has(.ub30-otp-card) .auth-card.ub30-otp-card {
    width:100% !important;
    max-width:100% !important;
    padding:clamp(18px,4vw,26px) !important;
  }
}
@media(prefers-reduced-motion:reduce) {
  html body.auth-body .auth-card.ub30-otp-card :is(.button-primary,.button-ghost) {transition:none !important;animation:none !important;}
}
/* UB30_CUSTOMER_OTP_END */

/* UB31_OTP_STYLE_START */
/* Customer OTP only, using the existing ub30 OTP marker; admin unaffected. */
html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 {
  box-sizing:border-box !important;
  width:min(1200px,calc(100% - 36px)) !important;
  max-width:1200px !important;
  min-height:min(785px,calc(100dvh - 48px)) !important;
  margin:24px auto !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  border:1px solid rgba(84,145,213,.30) !important;
  border-radius:24px !important;
  overflow:hidden !important;
  background:#07172d !important;
  box-shadow:0 24px 70px rgba(0,4,19,.38) !important;
}
html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 > .ub31-otp-story {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:center !important;
  width:100% !important;
  min-width:0 !important;
  min-height:720px !important;
  padding:clamp(30px,5vw,60px) !important;
  gap:35px !important;
  box-sizing:border-box !important;
  background:radial-gradient(circle at 100% 0,rgba(78,146,225,.15) 0 23%,transparent 23.3%),
    radial-gradient(circle at 0 105%,rgba(69,156,232,.17) 0 20%,transparent 20.3%),
    linear-gradient(155deg,#142b4a,#143654 100%) !important;
  border:0 !important;
  box-shadow:none !important;
  color:#eff7ff !important;
}
html body.auth-body:has(.ub30-otp-card) .ub31-brand-wrap {
  text-align:center !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:8px !important;
}
html body.auth-body:has(.ub30-otp-card) .ub31-otp-story .ub31-brand-wrap .brand {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  max-width:100% !important;
  color:#f1f8ff !important;
  margin:0 auto !important;
}
html body.auth-body:has(.ub30-otp-card) .ub31-brand-wrap > p {
  font-size:12px !important;
  font-weight:650 !important;
  letter-spacing:.12em !important;
  margin:0 !important;
  color:#8dc4fc !important;
}
html body.auth-body:has(.ub30-otp-card) .ub31-benefits {
  display:flex !important;
  flex-direction:column !important;
  gap:18px !important;
  margin:0 !important;
}
html body.auth-body:has(.ub30-otp-card) .ub31-benefit {
  display:flex !important;
  align-items:center !important;
  gap:16px !important;
  min-width:0 !important;
}
html body.auth-body:has(.ub30-otp-card) .ub31-feature-icon {
  flex:0 0 48px !important;
  width:48px !important;
  height:48px !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid rgba(116,192,255,.35) !important;
  border-radius:14px !important;
  color:#8adcff !important;
  background:linear-gradient(135deg,#20527e,#103357) !important;
  box-shadow:0 4px 18px rgba(29,116,204,.12) !important;
}
html body.auth-body:has(.ub30-otp-card) .ub31-feature-icon svg {
  width:24px !important;
  height:24px !important;
  stroke:currentColor !important;
  fill:none !important;
  stroke-width:1.8 !important;
}
html body.auth-body:has(.ub30-otp-card) .ub31-benefit-text {
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:3px !important;
}
html body.auth-body:has(.ub30-otp-card) .ub31-benefit-text strong {
  color:#f5f9ff !important;
  font-size:15px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
}
html body.auth-body:has(.ub30-otp-card) .ub31-benefit-text small {
  font-size:12px !important;
  color:#b2cee9 !important;
  line-height:1.4 !important;
}
html body.auth-body:has(.ub30-otp-card) .ub31-story-foot {
  font-size:12px !important;
  color:#b4d2ef !important;
  text-align:center !important;
  border-top:1px solid rgba(130,186,234,.18) !important;
  padding-top:20px !important;
}
html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 > .auth-panel-v4 {
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:720px !important;
  padding:clamp(26px,4vw,54px) !important;
  background:linear-gradient(160deg,#091d38,#071529) !important;
  box-shadow:none !important;
  border:0 !important;
}
html body.auth-body:has(.ub30-otp-card) .auth-panel-v4 .auth-panel-inner {
  box-sizing:border-box !important;
  width:min(100%,490px) !important;
  min-width:0 !important;
  max-width:490px !important;
  margin:auto !important;
  padding:0 !important;
}
/* The old OTP-only trust banner and long privacy note are not part of the Login layout. */
html body.auth-body:has(.ub30-otp-card) .auth-panel-inner > .auth-trust-line,
html body.auth-body:has(.ub30-otp-card) .auth-panel-inner > .auth-privacy-note,
html body.auth-body:has(.ub30-otp-card) .auth-panel-inner > .auth-privacy {
  display:none !important;
}
html body.auth-body:has(.ub30-otp-card) .auth-card.ub30-otp-card {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:490px !important;
  padding:clamp(25px,3vw,34px) !important;
  border-radius:20px !important;
  background:linear-gradient(150deg,#112a4b,#0a1a32) !important;
  box-shadow:0 20px 44px rgba(0,3,15,.28) !important;
}
html body.auth-body:has(.ub30-otp-card) .auth-card.ub30-otp-card .auth-card-head h2 {
  font-size:clamp(28px,2.8vw,35px) !important;
  line-height:1.16 !important;
}
@media(min-width:981px){
  html body.auth-body:has(.ub30-otp-card) .auth-panel-brand {display:none !important;}
}
@media(max-width:980px){
  html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 {
    display:block !important;
    width:100% !important;
    max-width:740px !important;
    min-height:100svh !important;
    margin:0 auto !important;
    padding:clamp(10px,3vw,18px) !important;
    border:0 !important;
    border-radius:0 !important;
    overflow:visible !important;
    background:#050e20 !important;
    box-shadow:none !important;
  }
  html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 > .ub31-otp-story {display:none !important;}
  html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 > .auth-panel-v4 {
    min-height:0 !important;
    height:auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    padding:clamp(15px,4vw,30px) !important;
    border-radius:18px !important;
  }
  html body.auth-body:has(.ub30-otp-card) .auth-panel-v4 .auth-panel-inner {width:100% !important;min-width:0 !important;max-width:500px !important;box-sizing:border-box !important;}
  html body.auth-body:has(.ub30-otp-card) .auth-card.ub30-otp-card {width:100% !important;min-width:0 !important;max-width:100% !important;box-sizing:border-box !important;}
}
@media(max-width:480px){
  html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 {padding:0 !important;}
  html body.auth-body:has(.ub30-otp-card) .auth-shell-v4 > .auth-panel-v4 {
    padding:clamp(15px,4vw,20px) !important;
    border-radius:0 !important;
  }
  html body.auth-body:has(.ub30-otp-card) .auth-card.ub30-otp-card {padding:23px 19px !important;}
  html body.auth-body:has(.ub30-otp-card) .auth-panel-brand {max-width:100% !important;margin-bottom:18px !important;}
}
/* UB31_OTP_STYLE_END */

