/* BAARA IA — AUTH VISUAL HOTFIX RC18.1
   Standalone and intentionally specific.
   This file must remain loaded AFTER styles.css. */

body.auth-open{
  overflow:hidden !important;
}

#authDialog.auth-modal{
  position:fixed;
  inset:0;
  z-index:5000;
  display:grid;
  place-items:center;
  padding:24px;
  overflow:hidden;
  background:rgba(2,12,32,.78);
  backdrop-filter:blur(13px);
  -webkit-backdrop-filter:blur(13px);
}
#authDialog.auth-modal[hidden]{
  display:none !important;
}

#authDialog #authExperienceV2.auth-card-v2{
  position:relative;
  width:min(1060px,calc(100vw - 48px)) !important;
  height:min(760px,calc(100vh - 48px));
  max-width:none !important;
  max-height:none !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  display:grid !important;
  grid-template-columns:minmax(330px,36%) minmax(0,64%) !important;
  grid-template-rows:minmax(0,1fr);
  overflow:hidden !important;
  border:1px solid rgba(255,255,255,.18);
  border-radius:28px;
  background:#fff;
  box-shadow:0 42px 130px rgba(2,12,32,.42);
  text-align:left !important;
}

#authExperienceV2 > .auth-close{
  position:absolute;
  top:14px;
  right:16px;
  z-index:20;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(7,31,79,.08);
  border-radius:12px;
  background:rgba(255,255,255,.94);
  color:#071f4f;
  box-shadow:0 5px 20px rgba(6,29,77,.12);
}

#authExperienceV2 > .auth-trust-panel{
  position:relative;
  min-width:0;
  min-height:0 !important;
  height:100%;
  display:flex !important;
  flex-direction:column;
  gap:18px;
  padding:30px 30px 26px !important;
  overflow:hidden;
  background:
    radial-gradient(circle at 110% -10%,rgba(255,255,255,.12),transparent 34%),
    linear-gradient(160deg,#061d4d 0%,#0b3d8e 67%,#1454d6 100%) !important;
  color:#fff !important;
  text-align:left !important;
}

#authExperienceV2 > .auth-trust-panel::before,
#authExperienceV2 > .auth-trust-panel::after{
  content:"";
  position:absolute;
  pointer-events:none;
  border-radius:50%;
  background:rgba(255,255,255,.055);
}
#authExperienceV2 > .auth-trust-panel::before{
  width:260px;height:260px;right:-150px;top:-100px;
}
#authExperienceV2 > .auth-trust-panel::after{
  width:200px;height:200px;left:-110px;bottom:-100px;
}

#authExperienceV2 .auth-brand-lockup{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:11px;
  margin:0;
}
#authExperienceV2 .auth-brand-lockup .auth-emblem{
  width:52px !important;
  height:auto !important;
  max-width:52px !important;
  object-fit:contain;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.2));
}
#authExperienceV2 .auth-brand-lockup b{
  display:block;
  color:#fff;
  font-size:1.1rem;
  line-height:1.1;
}
#authExperienceV2 .auth-brand-lockup span{
  display:block;
  margin-top:3px;
  color:#b8ccf7;
  font-size:.75rem;
}

#authExperienceV2 .auth-trust-copy{
  position:relative;
  z-index:2;
  margin:28px 0 2px !important;
}
#authExperienceV2 .auth-trust-copy .eyebrow{
  display:block;
  color:#ffd45f !important;
  font-size:.72rem;
  letter-spacing:.13em;
}
#authExperienceV2 .auth-trust-copy h2{
  margin:.45rem 0 .65rem !important;
  color:#fff !important;
  font-size:clamp(1.75rem,2.3vw,2.35rem) !important;
  line-height:1.06;
  letter-spacing:-.035em;
  text-align:left !important;
}
#authExperienceV2 .auth-trust-copy p{
  margin:0 !important;
  color:#d7e3fb !important;
  font-size:.9rem;
  line-height:1.55;
  text-align:left !important;
}

#authExperienceV2 .auth-benefits{
  position:relative;
  z-index:2;
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  gap:0 !important;
}
#authExperienceV2 .auth-benefits > li{
  list-style:none !important;
  margin:0 !important;
  padding:11px 0 !important;
  display:grid !important;
  grid-template-columns:30px minmax(0,1fr);
  gap:10px;
  align-items:start;
  border-top:1px solid rgba(255,255,255,.13);
  color:#fff !important;
}
#authExperienceV2 .auth-benefits > li::marker{
  content:"";
}
#authExperienceV2 .auth-benefits > li > span{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:rgba(255,212,95,.14);
  color:#ffd45f;
  font-weight:900;
}
#authExperienceV2 .auth-benefits b{
  display:block;
  color:#fff !important;
  font-size:.82rem;
  line-height:1.25;
}
#authExperienceV2 .auth-benefits small{
  display:block;
  margin-top:3px;
  color:#b8ccef !important;
  font-size:.7rem;
  line-height:1.35;
}

#authExperienceV2 .auth-security-note{
  position:relative;
  z-index:2;
  margin-top:auto;
  display:grid !important;
  grid-template-columns:10px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:11px 13px !important;
  border:1px solid rgba(255,255,255,.13);
  border-radius:13px;
  background:rgba(255,255,255,.08) !important;
  text-align:left !important;
}
#authExperienceV2 .auth-security-note b{
  display:block;
  color:#fff !important;
  font-size:.76rem;
}
#authExperienceV2 .auth-security-note small{
  display:block;
  margin-top:2px;
  color:#bcd0f6 !important;
  font-size:.67rem;
  line-height:1.35;
}
#authExperienceV2 .auth-security-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#56d89b;
  box-shadow:0 0 0 5px rgba(86,216,155,.14);
}
#authExperienceV2 .auth-security-dot.is-offline{
  background:#ffb24a;
  box-shadow:0 0 0 5px rgba(255,178,74,.14);
}

#authExperienceV2 > .auth-form-panel{
  min-width:0;
  min-height:0;
  height:100%;
  overflow:auto !important;
  overscroll-behavior:contain;
  padding:28px 38px 30px !important;
  background:linear-gradient(180deg,#fff 0%,#fbfcff 100%) !important;
  color:#14213d;
  text-align:left !important;
  scrollbar-gutter:stable;
}
#authExperienceV2 .auth-mobile-brand{
  display:none !important;
}
#authExperienceV2 .auth-heading{
  padding-right:36px;
}
#authExperienceV2 .auth-heading h2{
  margin:0 0 5px !important;
  color:#071f4f !important;
  font-size:1.85rem !important;
  line-height:1.15;
  letter-spacing:-.025em;
  text-align:left !important;
}
#authExperienceV2 .auth-heading p{
  margin:0 !important;
  color:#687995 !important;
  font-size:.88rem;
  line-height:1.45;
  text-align:left !important;
}

#authExperienceV2 .auth-tabs{
  display:grid !important;
  grid-template-columns:1fr 1fr;
  gap:4px;
  margin:18px 0 18px !important;
  padding:5px !important;
  border:1px solid #dfe6f1;
  border-radius:12px;
  background:#f3f6fb !important;
}
#authExperienceV2 .auth-tab{
  min-height:40px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#71819d;
  font-weight:800;
  cursor:pointer;
}
#authExperienceV2 .auth-tab.active,
#authExperienceV2 .auth-tab[aria-selected="true"]{
  background:#fff !important;
  color:#071f4f !important;
  box-shadow:0 5px 16px rgba(6,29,77,.09);
}

#authExperienceV2 .auth-form{
  display:grid !important;
  gap:12px !important;
  width:100%;
  margin:0;
  text-align:left !important;
}
#authExperienceV2 .auth-form[hidden]{
  display:none !important;
}
#authExperienceV2 .auth-form label{
  display:grid !important;
  gap:6px;
  color:#24324b !important;
  font-size:.79rem !important;
  font-weight:720;
  text-align:left !important;
}
#authExperienceV2 .auth-input-shell{
  position:relative;
  display:flex !important;
  align-items:center;
  min-width:0;
}
#authExperienceV2 .auth-input-shell input,
#authExperienceV2 .auth-advanced input{
  width:100%;
  min-width:0;
  height:46px;
  border:1px solid #d5deec;
  border-radius:11px;
  background:#fff;
  color:#14213d;
  box-sizing:border-box;
}
#authExperienceV2 .auth-input-shell input{
  padding-left:40px;
  padding-right:78px;
}
#authExperienceV2 .auth-input-shell input:focus,
#authExperienceV2 .auth-advanced input:focus{
  outline:none;
  border-color:#4f83e6;
  box-shadow:0 0 0 4px rgba(20,84,214,.11);
}
#authExperienceV2 .auth-input-icon{
  position:absolute;
  left:14px;
  z-index:2;
  color:#8090a9;
  font-weight:850;
}
#authExperienceV2 .auth-password-toggle{
  position:absolute;
  right:8px;
  z-index:2;
  border:0;
  border-radius:8px;
  padding:7px 8px;
  background:#eef3fb;
  color:#071f4f;
  font-size:.69rem;
  font-weight:800;
  cursor:pointer;
}

#authExperienceV2 .auth-inline-actions{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:-2px;
}
#authExperienceV2 .auth-mini-trust{
  color:#0d7a4c;
  font-size:.72rem;
  font-weight:800;
}
#authExperienceV2 .auth-forgot{
  font-size:.75rem;
}

#authExperienceV2 .auth-mode-fieldset{
  border:0 !important;
  margin:2px 0 !important;
  padding:0 !important;
}
#authExperienceV2 .auth-mode-fieldset legend{
  margin-bottom:7px;
  color:#071f4f;
  font-size:.76rem;
  font-weight:850;
}
#authExperienceV2 .auth-mode-grid{
  display:grid !important;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
#authExperienceV2 .auth-mode-option{
  position:relative;
  display:block !important;
}
#authExperienceV2 .auth-mode-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
#authExperienceV2 .auth-mode-option > span{
  display:block;
  height:100%;
  padding:10px 11px;
  border:1px solid #d7dfed;
  border-radius:11px;
  background:#fff;
  cursor:pointer;
  box-sizing:border-box;
}
#authExperienceV2 .auth-mode-option b,
#authExperienceV2 .auth-mode-option small{
  display:block;
}
#authExperienceV2 .auth-mode-option b{
  color:#071f4f;
  font-size:.76rem;
}
#authExperienceV2 .auth-mode-option small{
  margin-top:3px;
  color:#72819b;
  font-size:.66rem;
  line-height:1.3;
}
#authExperienceV2 .auth-mode-option em{
  display:inline-block;
  margin-left:4px;
  padding:2px 5px;
  border-radius:999px;
  background:#e9fbf2;
  color:#0d7a4c;
  font-size:.56rem;
  font-style:normal;
}
#authExperienceV2 .auth-mode-option input:checked + span{
  border-color:#4f83e6;
  background:#f7faff;
  box-shadow:0 0 0 3px rgba(20,84,214,.09);
}
#authExperienceV2 .auth-mode-option input:focus-visible + span{
  outline:2px solid #1454d6;
  outline-offset:2px;
}

#authExperienceV2 .auth-password-meter{
  padding:10px 11px;
  border:1px solid #dfe6f1;
  border-radius:11px;
  background:#f8faff;
}
#authExperienceV2 .auth-password-meter-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:.7rem;
}
#authExperienceV2 .auth-strength-track{
  height:5px;
  margin:7px 0;
  overflow:hidden;
  border-radius:999px;
  background:#e2e8f2;
}
#authExperienceV2 .auth-strength-track > span{
  display:block;
  height:100%;
  background:linear-gradient(90deg,#e35b51,#f4b83d,#36b77d);
}
#authExperienceV2 .auth-password-rules{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:3px 10px;
  color:#7888a3;
  font-size:.66rem;
}
#authExperienceV2 .auth-password-rules li{
  list-style:none !important;
}
#authExperienceV2 .auth-password-rules li::marker{
  content:"";
}

#authExperienceV2 .auth-advanced{
  padding-top:8px;
  border-top:1px solid #e3e9f2;
  color:#687995;
}
#authExperienceV2 .auth-advanced summary{
  color:#687995;
  font-size:.7rem;
  font-weight:800;
  cursor:pointer;
}

#authExperienceV2 .auth-consents{
  display:grid !important;
  gap:7px;
}
#authExperienceV2 .auth-consents .check-row{
  display:flex !important;
  grid-template-columns:none !important;
  align-items:flex-start;
  gap:8px;
  font-size:.7rem !important;
  line-height:1.4;
}
#authExperienceV2 .auth-consents .check-row input{
  flex:0 0 auto;
  margin-top:3px;
}

#authExperienceV2 .auth-submit{
  min-height:46px;
  width:100%;
}
#authExperienceV2 .auth-demo-divider{
  display:flex !important;
  align-items:center;
  gap:10px;
  color:#8c9bb4;
  font-size:.66rem;
  text-align:center;
}
#authExperienceV2 .auth-demo-divider::before,
#authExperienceV2 .auth-demo-divider::after{
  content:"";
  height:1px;
  flex:1;
  background:#e2e8f2;
}
#authExperienceV2 .auth-message{
  min-height:20px;
  margin:10px 0 0 !important;
  text-align:left !important;
}

@media (max-width:900px){
  #authDialog.auth-modal{
    padding:12px;
  }
  #authDialog #authExperienceV2.auth-card-v2{
    width:min(640px,calc(100vw - 24px)) !important;
    height:min(760px,calc(100vh - 24px));
    grid-template-columns:1fr !important;
  }
  #authExperienceV2 > .auth-trust-panel{
    display:none !important;
  }
  #authExperienceV2 > .auth-form-panel{
    padding:26px 28px 28px !important;
  }
  #authExperienceV2 .auth-mobile-brand{
    display:flex !important;
    align-items:center;
    gap:8px;
    margin-bottom:15px;
  }
  #authExperienceV2 .auth-mobile-brand img{
    width:36px;
  }
  #authExperienceV2 .auth-mobile-brand b{
    color:#071f4f;
  }
  #authExperienceV2 .auth-mobile-brand span{
    color:#1454d6;
  }
}

@media (max-width:560px){
  #authDialog.auth-modal{
    padding:0;
    place-items:end center;
  }
  #authDialog #authExperienceV2.auth-card-v2{
    width:100% !important;
    height:min(94vh,780px);
    border-radius:24px 24px 0 0;
  }
  #authExperienceV2 > .auth-form-panel{
    padding:22px 18px 26px !important;
  }
  #authExperienceV2 .auth-heading h2{
    font-size:1.55rem !important;
  }
  #authExperienceV2 .auth-mode-grid,
  #authExperienceV2 .auth-password-rules{
    grid-template-columns:1fr;
  }
  #authExperienceV2 .auth-input-shell input{
    font-size:16px;
  }
}

@media (max-height:700px) and (min-width:901px){
  #authDialog #authExperienceV2.auth-card-v2{
    height:calc(100vh - 24px);
  }
  #authExperienceV2 > .auth-trust-panel{
    padding:24px 26px !important;
  }
  #authExperienceV2 .auth-trust-copy{
    margin:16px 0 0 !important;
  }
  #authExperienceV2 .auth-trust-copy h2{
    font-size:1.65rem !important;
  }
  #authExperienceV2 .auth-benefits > li{
    padding:8px 0 !important;
  }
  #authExperienceV2 > .auth-form-panel{
    padding-top:22px !important;
  }
}

@media (prefers-reduced-motion:reduce){
  #authExperienceV2 *,
  #authExperienceV2 *::before,
  #authExperienceV2 *::after{
    scroll-behavior:auto !important;
    transition:none !important;
  }
}


/* RC18.2 — registration density + short-screen hardening */
#authExperienceV2[data-auth-panel="register"] > .auth-form-panel{
  padding-top:22px !important;
}
#authExperienceV2[data-auth-panel="register"] .auth-heading h2{
  font-size:1.65rem !important;
}
#authExperienceV2[data-auth-panel="register"] .auth-tabs{
  margin:14px 0 14px !important;
}
#authExperienceV2[data-auth-panel="register"] #registerForm{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  column-gap:12px !important;
  row-gap:10px !important;
}
#authExperienceV2[data-auth-panel="register"] #registerForm > label:nth-of-type(1),
#authExperienceV2[data-auth-panel="register"] #registerForm > label:nth-of-type(2),
#authExperienceV2[data-auth-panel="register"] #registerForm > label:nth-of-type(3),
#authExperienceV2[data-auth-panel="register"] #registerForm > label:nth-of-type(4){
  min-width:0;
}
#authExperienceV2[data-auth-panel="register"] #registerForm > .auth-password-meter,
#authExperienceV2[data-auth-panel="register"] #registerForm > .auth-mode-fieldset,
#authExperienceV2[data-auth-panel="register"] #registerForm > .auth-consents,
#authExperienceV2[data-auth-panel="register"] #registerForm > .auth-submit,
#authExperienceV2[data-auth-panel="register"] #registerForm > .auth-login-hint{
  grid-column:1 / -1;
}
#authExperienceV2[data-auth-panel="register"] .auth-input-shell input{
  height:43px;
}
#authExperienceV2[data-auth-panel="register"] .auth-password-meter{
  padding:8px 10px;
}
#authExperienceV2[data-auth-panel="register"] .auth-mode-option > span{
  padding:9px 10px;
}
#authExperienceV2[data-auth-panel="register"] .auth-consents{
  gap:5px !important;
}
#authExperienceV2[data-auth-panel="register"] .auth-consents .check-row{
  font-size:.67rem !important;
}
#authExperienceV2 .auth-service-state{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:9px 10px;
  border-radius:10px;
  border:1px solid #dce5f2;
  background:#f8faff;
  color:#64758f;
  font-size:.7rem;
  line-height:1.4;
}
#authExperienceV2 .auth-service-state strong{
  color:#18345f;
}
#authExperienceV2 .auth-service-state.is-ready{
  border-color:#bce7cf;
  background:#f4fcf7;
  color:#317454;
}
#authExperienceV2 .auth-service-state.is-unavailable{
  border-color:#f0cfbd;
  background:#fff8f4;
  color:#915236;
}
#authExperienceV2 .auth-service-state .auth-service-dot{
  flex:0 0 auto;
  width:8px;
  height:8px;
  margin-top:4px;
  border-radius:50%;
  background:#9aa7ba;
}
#authExperienceV2 .auth-service-state.is-ready .auth-service-dot{
  background:#36b77d;
}
#authExperienceV2 .auth-service-state.is-unavailable .auth-service-dot{
  background:#df7b45;
}
#authExperienceV2 .auth-mode-option.is-service-unavailable > span{
  border-color:#efd4c4;
}
#authExperienceV2 .auth-mode-option.is-service-unavailable small{
  color:#945b40;
}
#authExperienceV2 .auth-mode-option .auth-mode-service-tag{
  display:inline-flex;
  margin-left:5px;
  padding:2px 5px;
  border-radius:999px;
  font-size:.55rem;
  font-style:normal;
  background:#eef3fb;
  color:#687995;
}
#authExperienceV2 .auth-mode-option .auth-mode-service-tag.is-ready{
  background:#e7f8ef;
  color:#0d7a4c;
}
#authExperienceV2 .auth-mode-option .auth-mode-service-tag.is-unavailable{
  background:#fff0e7;
  color:#a3542b;
}
#authExperienceV2 .auth-server-test-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:7px;
}
#authExperienceV2 .auth-server-test-row small{
  margin:0;
}
#authExperienceV2 #authTestServer{
  white-space:nowrap;
}

@media (max-width:760px){
  #authExperienceV2[data-auth-panel="register"] #registerForm{
    grid-template-columns:1fr;
  }
  #authExperienceV2[data-auth-panel="register"] #registerForm > .auth-password-meter,
  #authExperienceV2[data-auth-panel="register"] #registerForm > .auth-mode-fieldset,
  #authExperienceV2[data-auth-panel="register"] #registerForm > .auth-consents,
  #authExperienceV2[data-auth-panel="register"] #registerForm > .auth-submit,
  #authExperienceV2[data-auth-panel="register"] #registerForm > .auth-login-hint{
    grid-column:auto;
  }
}

@media (max-height:760px) and (min-width:901px){
  #authDialog #authExperienceV2.auth-card-v2{
    height:calc(100vh - 20px);
  }
  #authExperienceV2 > .auth-form-panel{
    padding:18px 30px 22px !important;
  }
  #authExperienceV2 .auth-heading h2{
    font-size:1.55rem !important;
  }
  #authExperienceV2 .auth-heading p{
    font-size:.78rem;
  }
  #authExperienceV2 .auth-tabs{
    margin:11px 0 11px !important;
  }
  #authExperienceV2 .auth-form{
    gap:9px !important;
  }
  #authExperienceV2 .auth-input-shell input{
    height:41px;
  }
  #authExperienceV2 .auth-trust-copy{
    margin:10px 0 0 !important;
  }
  #authExperienceV2 .auth-trust-copy h2{
    font-size:1.5rem !important;
  }
  #authExperienceV2 .auth-trust-copy p{
    font-size:.78rem;
  }
  #authExperienceV2 .auth-benefits > li{
    padding:7px 0 !important;
  }
}
