/* UB_AUTH_REFERENCE_V21 - one consistent auth layout for login, register and password recovery.
   Replaces V20 CSS completely; no historic V9-V16 overlay cascade. */
html body:has(.ub21-story){background:#edf2f9!important;color:#14243e!important}
html body:has(.ub21-story) .auth-story{
  box-sizing:border-box!important;align-self:stretch!important;height:auto!important;
  min-height:100%!important;max-height:none!important;overflow:hidden!important;
  background:#102b4b!important;
}
html body:has(.ub21-story) .auth-login-v1-stage{
  box-sizing:border-box!important;position:relative!important;inset:auto!important;
  width:100%!important;max-width:100%!important;min-height:100%!important;
  height:100%!important;max-height:none!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;overflow:visible!important;
  background:#112b48!important;transform:none!important;box-shadow:none!important;
}
html body:has(.ub21-story) .auth-login-v1-stage::before,
html body:has(.ub21-story) .auth-login-v1-stage::after{content:none!important;display:none!important}
html body:has(.ub21-story) .auth-login-v1-stage>:not(.ub21-story){display:none!important}
html body .ub21-story,html body .ub21-story *{box-sizing:border-box}
html body .ub21-story{
  position:relative!important;isolation:isolate;display:flex!important;
  flex-direction:column!important;align-items:stretch!important;justify-content:center!important;
  min-height:505px!important;height:100%!important;width:100%!important;max-width:none!important;
  margin:0!important;padding:24px clamp(22px,3.2vw,43px)!important;
  color:#f7fbff!important;border:0!important;border-radius:0!important;
  overflow:hidden!important;transform:none!important;
  background:
    radial-gradient(circle at 108% 1%,rgba(66,138,215,.13) 0 23%,transparent 23.2%),
    radial-gradient(circle at 1% 110%,rgba(123,195,238,.11) 0 23%,transparent 23.2%),
    linear-gradient(155deg,#101c34 0%,#1a3a5b 58%,#10436c 100%)!important;
}
html body .ub21-story::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.15;
  background:linear-gradient(90deg,transparent 49.7%,rgba(111,171,237,.12) 50%,transparent 50.3%) 0 0/44px 44px;
}
/* Single brand, integrated directly with the navy surface. */
html body .ub21-story .ub20-brand-center{
  position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;
  justify-content:center;width:100%;min-width:0;gap:4px;
  margin:0 auto 18px!important;text-align:center;
}
html body .ub21-story .ub20-primary-brand{
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;min-width:0!important;min-height:58px!important;
  width:max-content!important;max-width:100%!important;margin:0 auto!important;padding:0 10px!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;outline-offset:7px;text-decoration:none!important;overflow:visible!important;
}
html body .ub21-story .ub20-primary-brand>.ub-global-brand-v6{
  transform:none!important;transform-origin:center;max-width:100%!important;
}
html body .ub21-story .ub20-primary-brand .ub-v6-title{
  white-space:nowrap!important;overflow:visible!important;max-width:none!important;
  padding-right:11px!important;font-size:clamp(23px,2.4vw,30px)!important;
}
html body .ub21-story .ub20-primary-brand .ub-v6-tagline{
  display:block!important;width:100%!important;text-align:center!important;
  white-space:nowrap!important;color:#bbd4ee!important;font-size:8.5px!important;
}
html body .ub21-story .ub20-platform-note{
  margin:1px 0 0!important;color:#98bfe6!important;
  font-size:12px!important;font-weight:680!important;letter-spacing:.07em!important;
  line-height:1.4!important;
}
html body .ub21-story .ub20-benefits{
  position:relative;z-index:1;display:grid;grid-template-columns:1fr;
  width:min(100%,410px)!important;gap:12px!important;margin:0 auto 18px!important;padding:0!important;
}
html body .ub21-story .ub20-benefit{
  position:relative;display:flex;align-items:center;gap:13px;min-width:0;
  min-height:55px;padding:4px 7px;border-radius:12px;
  transition:background-color .25s ease,transform .3s ease;
  animation:ub21-benefit-arrive .6s both;
}
html body .ub21-story .ub20-benefit:nth-child(2){animation-delay:.08s}
html body .ub21-story .ub20-benefit:nth-child(3){animation-delay:.16s}
html body .ub21-story .ub20-benefit:nth-child(4){animation-delay:.24s}
html body .ub21-story .ub20-benefit:hover{
  background-color:rgba(93,160,236,.075);transform:translateX(3px);
}
/* Four differently tinted icon treatments; color is restrained and premium. */
html body .ub21-story .ub20-benefit-icon{
  position:relative;display:grid;place-items:center;overflow:visible;
  width:47px;height:47px;flex:0 0 47px;border-radius:13px;
  border:1px solid rgba(150,207,255,.20);color:#cce9ff;
  background:linear-gradient(145deg,rgba(65,149,247,.34),rgba(17,70,132,.40));
  box-shadow:inset 0 1px 0 rgba(238,248,255,.16),0 5px 14px rgba(1,19,48,.12);
  animation:ub21-icon-breathe 6.2s ease-in-out infinite;
}
html body .ub21-story .ub20-benefit:nth-child(2) .ub20-benefit-icon{
  color:#98f0ec;background:linear-gradient(145deg,rgba(36,184,195,.30),rgba(14,92,141,.43));
  border-color:rgba(85,215,209,.27);animation-delay:1.4s;
}
html body .ub21-story .ub20-benefit:nth-child(3) .ub20-benefit-icon{
  color:#b9ceff;background:linear-gradient(145deg,rgba(102,139,239,.29),rgba(43,81,154,.36));
  border-color:rgba(157,183,252,.26);animation-delay:2.7s;
}
html body .ub21-story .ub20-benefit:nth-child(4) .ub20-benefit-icon{
  color:#8ce1ff;background:linear-gradient(145deg,rgba(53,167,233,.33),rgba(26,80,151,.41));
  border-color:rgba(116,204,255,.28);animation-delay:4.1s;
}
html body .ub21-story .ub20-benefit-icon::after{
  content:"";position:absolute;inset:-3px;border-radius:14px;pointer-events:none;
  border:1px solid rgba(143,209,255,.0);transition:border-color .25s ease,transform .25s ease;
}
html body .ub21-story .ub20-benefit:hover .ub20-benefit-icon::after{
  border-color:rgba(148,214,255,.36);transform:scale(1.08);
}
html body .ub21-story .ub20-benefit-icon svg{
  display:block;width:23px;height:23px;fill:none;stroke:currentColor;
  stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 0 4px rgba(135,210,255,.20));
}
html body .ub21-story .ub20-benefit strong{
  display:block;color:#fff;font-size:15px;font-weight:780;line-height:1.26;letter-spacing:-.012em;
}
html body .ub21-story .ub20-benefit small{
  display:block;margin-top:3px;color:#b5d1e9;font-size:11.6px;line-height:1.3;
}
html body .ub21-story .ub20-online{
  position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:9px;
  width:min(100%,410px);margin:0 auto;padding-top:12px;
  border-top:1px solid rgba(166,204,243,.14);
  color:#b4d1ea;font-size:11px;line-height:1.4;font-weight:680;text-align:center;
}
html body .ub21-story .ub20-online i{
  flex:0 0 8px;width:8px;height:8px;background:#25dbb1;border-radius:50%;
  box-shadow:0 0 0 4px rgba(37,219,177,.12);
}
@keyframes ub21-benefit-arrive{
  from{opacity:0;transform:translateY(9px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes ub21-icon-breathe{
  0%,18%,100%{filter:brightness(1);box-shadow:inset 0 1px 0 rgba(238,248,255,.16),0 5px 14px rgba(1,19,48,.12)}
  34%{filter:brightness(1.16);box-shadow:inset 0 1px 0 rgba(238,248,255,.23),0 0 14px rgba(73,176,239,.21)}
  52%{filter:brightness(1)}
}
/* Existing server-rendered form, unchanged in structure and validation. */
html body:has(.ub21-story) .auth-panel{
  box-sizing:border-box!important;position:relative!important;display:flex!important;
  flex-direction:column!important;align-items:stretch!important;justify-content:center!important;
  align-self:stretch!important;min-width:0!important;min-height:0!important;
  height:auto!important;max-height:none!important;overflow:visible!important;
  padding:clamp(22px,3.2vw,42px)!important;background:#fff!important;color:#17283f!important;
}
html body:has(.ub21-story) .auth-panel .ub20-form-container{
  width:100%!important;max-width:100%!important;min-width:0!important;
}
html body:has(.ub21-story) .auth-panel .ub20-form-heading{
  display:block!important;width:min(100%,540px);max-width:100%;margin:0 auto 12px!important;
  direction:ltr;text-align:left;
}
html body:has(.ub21-story) .auth-panel .ub20-form-heading h1{
  color:#12233c!important;font-size:clamp(27px,2.3vw,34px)!important;
  font-weight:830!important;letter-spacing:-.04em!important;line-height:1.14!important;
  margin:0 0 3px!important;text-transform:none!important;text-align:left!important;
}
html body:has(.ub21-story) .auth-panel .ub20-form-heading p{
  margin:0!important;color:#8391a6!important;font-size:11.5px!important;line-height:1.45!important;
}
html body:has(.ub21-story) .auth-panel form{
  width:min(100%,540px)!important;max-width:100%!important;
  margin:0 auto!important;overflow:visible!important;gap:7px!important;
}
html body:has(.ub21-story) .auth-panel label{
  color:#5a6b84!important;font-size:10.2px!important;font-weight:740!important;
  line-height:1.3!important;letter-spacing:.055em!important;text-transform:uppercase!important;
  margin-bottom:3px!important;
}
html body:has(.ub21-story) .auth-panel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html body:has(.ub21-story) .auth-panel select,
html body:has(.ub21-story) .auth-panel textarea{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  min-height:41px!important;height:41px!important;padding-top:6px!important;padding-bottom:6px!important;
  border-radius:10px!important;border:1px solid #d6e1ed!important;
  background-color:#f0f5fc!important;color:#162b45!important;font-size:12.5px!important;
  box-shadow:none!important;transition:border-color .18s ease,box-shadow .18s ease!important;
}
html body:has(.ub21-story) .auth-panel input:focus-visible,
html body:has(.ub21-story) .auth-panel select:focus-visible,
html body:has(.ub21-story) .auth-panel textarea:focus-visible{
  border-color:#3184ed!important;box-shadow:0 0 0 3px rgba(49,132,237,.15)!important;
  outline:none!important;
}
html body:has(.ub21-story) .auth-panel button[type="submit"],
html body:has(.ub21-story) .auth-panel input[type="submit"]{
  width:100%!important;max-width:100%!important;min-height:42px!important;height:42px!important;
  padding:8px 14px!important;border:0!important;border-radius:9px!important;
  background:linear-gradient(100deg,#1876e9,#0757d2)!important;color:#fff!important;
  font-size:12.6px!important;font-weight:770!important;letter-spacing:.01em!important;
  box-shadow:0 8px 16px rgba(15,90,204,.13)!important;cursor:pointer;
}
html body:has(.ub21-story) .auth-panel button[type="submit"]:hover{filter:brightness(1.065);transform:translateY(-2px);box-shadow:0 11px 22px rgba(15,90,204,.20)!important}
html body:has(.ub21-story) .auth-panel a[href*="forgot"]{
  font-size:11px!important;font-weight:720!important;color:#126bdc!important;text-align:right!important;
}
html body:has(.ub21-story) .auth-panel .ub20-cta-row{
  width:min(100%,540px);max-width:100%;margin:10px auto 0!important;text-align:center;
}
html body:has(.ub21-story) .auth-panel .ub20-or{
  display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 11px!important;
  font-size:11px;font-weight:650;color:#8392a9;
}
html body:has(.ub21-story) .auth-panel .ub20-or::before,
html body:has(.ub21-story) .auth-panel .ub20-or::after{
  content:"";flex:1;height:1px;background:#dce5f0;
}
html body:has(.ub21-story) .auth-panel a.ub20-secondary{
  display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;
  width:100%;min-height:42px;padding:7px 12px;
  border:1.5px solid #2179e8;border-radius:9px;background:#fff;
  text-decoration:none!important;font-size:13px!important;font-weight:730!important;
  color:#1164d6!important;transition:background .22s ease,transform .22s ease,box-shadow .22s ease;
}
html body:has(.ub21-story) .auth-panel a.ub20-secondary:hover{background:#eff7ff;transform:translateY(-2px);box-shadow:0 8px 16px rgba(20,100,203,.10)}
html body:has(.ub21-story) .auth-panel .ub20-register-link{
  margin:9px 0 0!important;font-size:11.3px;color:#687b96;text-align:center;
}
html body:has(.ub21-story) .auth-panel .ub20-register-link a{
  color:#126bdc;text-decoration:none;font-weight:750;
}
html body:has(.ub21-story) .auth-panel .auth-panel-brand,
html body:has(.ub21-story) .auth-panel .ub20-legacy-muted,
html body:has(.ub21-story) .auth-panel .ub20-badge-hidden{display:none!important}
html body:has(.ub21-story) .auth-panel [role="alert"],
html body:has(.ub21-story) .auth-panel .invalid-feedback{
  display:block;color:#b4233b;
}
html body:has(.ub21-story) .auth-panel form :where(.row,.grid,.form-row){row-gap:7px!important}
@media(max-width:1050px){
  html body .ub21-story{min-height:475px!important;padding:21px 20px!important}
  html body:has(.ub21-story) .auth-panel{padding:25px 24px!important}
  html body .ub21-story .ub20-benefits{gap:9px!important}
}
@media(max-width:850px){
  html body:has(.ub21-story) .auth-story,
  html body:has(.ub21-story) .auth-login-v1-stage{height:auto!important;min-height:0!important}
  html body .ub21-story{height:auto!important;min-height:0!important;padding:18px 17px!important}
  html body .ub21-story .ub20-brand-center{margin-bottom:12px!important}
  html body .ub21-story .ub20-primary-brand{min-height:45px!important;padding:0 6px!important}
  html body .ub21-story .ub20-primary-brand>.ub-global-brand-v6{transform:scale(.87)!important}
  html body .ub21-story .ub20-primary-brand .ub-v6-title{font-size:20px!important}
  html body .ub21-story .ub20-platform-note{font-size:9px!important}
  html body .ub21-story .ub20-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;margin-bottom:12px!important}
  html body .ub21-story .ub20-benefit{gap:8px;min-height:39px;padding:2px}
  html body .ub21-story .ub20-benefit-icon{width:30px;height:30px;flex-basis:30px;border-radius:9px}
  html body .ub21-story .ub20-benefit-icon svg{width:17px;height:17px}
  html body .ub21-story .ub20-benefit strong{font-size:10.8px!important}
  html body .ub21-story .ub20-benefit small{display:none!important}
  html body .ub21-story .ub20-online{padding-top:10px;font-size:10px}
  html body:has(.ub21-story) .auth-panel{padding:25px 21px!important}
}
@media(max-width:430px){
  html body .ub21-story .ub20-primary-brand>.ub-global-brand-v6{transform:scale(.77)!important}
  html body .ub21-story .ub20-primary-brand .ub-v6-title{font-size:18px!important}
  html body:has(.ub21-story) .auth-panel{padding:22px 15px!important}
  html body:has(.ub21-story) .auth-panel .ub20-form-heading h1{font-size:27px!important}
  html body .ub21-story .ub20-benefit strong{font-size:9.5px!important}
}
/* UB_AUTH_REFERENCE_V22_FINISH — refined typography and microinteractions. */
html body .ub21-story .ub20-benefit-icon svg{
  transform-origin:center center;
  will-change:transform;
}
html body .ub21-story .ub20-benefit:nth-child(1) .ub20-benefit-icon svg{
  animation:ub22-electric 7.8s ease-in-out infinite;
}
html body .ub21-story .ub20-benefit:nth-child(2) .ub20-benefit-icon svg{
  animation:ub22-globe 9.2s ease-in-out infinite;
}
html body .ub21-story .ub20-benefit:nth-child(3) .ub20-benefit-icon svg{
  animation:ub22-shield 8.4s ease-in-out infinite;
}
html body .ub21-story .ub20-benefit:nth-child(4) .ub20-benefit-icon svg{
  animation:ub22-support 8.8s ease-in-out infinite;
}
@keyframes ub22-electric{
  0%,12%,25%,100%{transform:translateY(0) scale(1)}
  17%{transform:translateY(-2px) scale(1.10)}
  21%{transform:translateY(0) scale(1.02)}
}
@keyframes ub22-globe{
  0%,14%,36%,100%{transform:rotate(0)}
  22%{transform:rotate(-10deg)}
  29%{transform:rotate(9deg)}
}
@keyframes ub22-shield{
  0%,14%,30%,100%{transform:scale(1)}
  22%{transform:scale(1.10)}
}
@keyframes ub22-support{
  0%,15%,35%,100%{transform:rotate(0)}
  23%{transform:rotate(-7deg)}
  28%{transform:rotate(5deg)}
}
html body:has(.ub21-story) .auth-panel button[type="submit"]{
  transition:filter .2s ease,transform .2s ease,box-shadow .2s ease!important;
}
html body:has(.ub21-story) .auth-panel button[type="submit"]:active,
html body:has(.ub21-story) .auth-panel a.ub20-secondary:active{
  transform:translateY(0) scale(.99)!important;
}
html body:has(.ub21-story) .auth-panel button[type="submit"]:focus-visible,
html body:has(.ub21-story) .auth-panel a.ub20-secondary:focus-visible{
  outline:3px solid rgba(39,132,243,.40)!important;
  outline-offset:3px!important;
}
@media(max-width:850px){
  html body:has(.ub21-story) .auth-panel button[type="submit"],
  html body:has(.ub21-story) .auth-panel a.ub20-secondary{
    min-height:44px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body .ub21-story *,html body .ub21-story *::before,html body .ub21-story *::after{
    animation:none!important;transition:none!important;
  }
  html body:has(.ub21-story) .auth-panel button[type="submit"],
  html body:has(.ub21-story) .auth-panel a.ub20-secondary{transition:none!important;}
}

/* UB_AUTH_V23_UNIFIED - spacing and same TR/EN structure; scoped to auth pages. */
/* Refined rhythm: expand benefit-row breathing room without expanding outer page height. */
@media (min-width: 851px) {
  html body .ub21-story .ub20-brand-center { margin-bottom: 20px !important; }
  html body .ub21-story .ub20-benefits {
    gap: 16px !important;
    margin-bottom: 17px !important;
  }
  html body .ub21-story .ub20-benefit {
    min-height: 57px !important;
    gap: 15px !important;
    padding: 4px 9px !important;
  }
  html body .ub21-story .ub20-online {
    padding-top: 14px !important;
  }
  html body:has(.ub21-story) .auth-panel .ub20-form-heading {
    margin-bottom: 15px !important;
  }
  html body:has(.ub21-story) .auth-panel .ub20-form-heading h1 {
    font-size: clamp(27px, 2.45vw, 35px) !important;
  }
}
/* Keep a single heading architecture for TR and EN. */
html body:has(.ub21-story) .auth-panel .ub23-kicker {
  display:block;
  margin: 0 0 6px;
  color: #386bb9;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .09em;
  font-weight: 760;
  text-transform: uppercase;
}
html body:has(.ub21-story) .auth-panel .ub20-form-heading h1 {
  margin: 0 0 4px !important;
  line-height: 1.14 !important;
}
html body:has(.ub21-story) .auth-panel .ub20-form-heading p {
  line-height: 1.42 !important;
  font-size: 11.8px !important;
}
@media (max-width: 850px) {
  html body .ub21-story .ub20-benefits { gap: 9px !important; }
  html body .ub21-story .ub20-benefit { gap: 8px !important; }
  html body:has(.ub21-story) .auth-panel .ub23-kicker { font-size: 9px; margin-bottom: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html body:has(.ub21-story) .auth-panel * { scroll-behavior:auto!important; }
}
/* END UB_AUTH_V23_UNIFIED */

/* UB_AUTH_V24_LOGO_POSITION: login/register/forgot visual only. */
@media (min-width: 851px) {
  html body .ub21-story .ub20-brand-center {
    position: relative !important;
    top: -12px !important;
    margin-bottom: 29px !important;
  }
}
@media (max-width: 850px) {
  html body .ub21-story .ub20-brand-center {
    top: auto !important;
  }
}

/* UB_AUTH_V27_SCROLL_FIX: content-first auth sizing for every locale.
   Desktop & mobile: allow document scrolling whenever translation/form is taller than viewport.
   Does not modify form fields, handlers, layout copy, or RTL direction. */
html:has(body .ub21-story) {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
}
html body:has(.ub21-story) {
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
}
/* Only ancestors containing this public auth panel. Older shared styles used a
   viewport-locked shell; those must never clip a translated registration form. */
html body:has(.ub21-story) :is(main, article, section, div):has(.auth-panel):not(.auth-panel) {
  box-sizing: border-box !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
/* Retain the rounded two-column card, but grow it beyond viewport when necessary. */
html body:has(.ub21-story) :is(main, article, section, div):has(> .auth-story):has(> .auth-panel) {
  min-height: min(870px, calc(100dvh - 32px)) !important;
  max-height: none !important;
  height: auto !important;
  align-items: stretch !important;
  overflow: hidden !important;
}
html body:has(.ub21-story) .auth-story {
  align-self: stretch !important;
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow: hidden !important;
}
html body:has(.ub21-story) .auth-login-v1-stage {
  height: 100% !important;
  max-height: none !important;
}
html body:has(.ub21-story) .auth-panel {
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: max-content !important;
  max-height: none !important;
  overflow: visible !important;
}
html body:has(.ub21-story) .auth-panel form,
html body:has(.ub21-story) .auth-panel .ub20-form-container {
  max-height: none !important;
  overflow: visible !important;
}
@media (max-width: 850px) {
  html body:has(.ub21-story) :is(main, article, section, div):has(> .auth-story):has(> .auth-panel) {
    min-height: 0 !important;
    overflow: hidden !important;
  }
  html body:has(.ub21-story) .auth-story,
  html body:has(.ub21-story) .auth-login-v1-stage,
  html body:has(.ub21-story) .ub21-story {
    min-height: 0 !important;
    height: auto !important;
  }
  html body:has(.ub21-story) .auth-panel {
    min-height: max-content !important;
    overflow: visible !important;
  }
}
