/* NBX Auth Popup - lightweight, no layout shift on load (hidden by default) */
#nbxAuthOverlay{display:none}
.nbxAuthOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:99999;
  padding:14px;
}
.nbxAuthBox{
  width:min(420px, 100%);
  margin:8vh auto 0;
  background:#fff;
  border-radius:16px;
  box-shadow:0 14px 40px rgba(0,0,0,.18);
  padding:18px 18px 16px;
  position:relative;
}
.nbxAuthClose{
  position:absolute;
  top:10px; inset-inline-end:12px;
  border:0; background:transparent;
  font-size:22px; line-height:1;
  cursor:pointer;
}
.nbxAuthTabs{
  display:flex;
  gap:8px;
  padding:0;
  margin-bottom:12px;
  background:transparent;
}
.nbxAuthTab{
  flex:1;
  border:1px solid rgba(0,0,0,.12);
  background:white;
  color:black;
  padding:10px 10px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
}
.nbxAuthTab.is-active{
  background:black;
  color:white;
  border-color:black;
}
.nbxAuthTitle{
  font-size:16px;
  margin:8px 0 10px;
  font-weight:800;
}
.nbxAuthPane{display:none}
.nbxAuthPane.is-active{display:block}
.nbxAuthLabel{
  display:block;
  font-size:13px;
  margin:10px 0 6px;
  color:#333;
  font-weight:600;
}
.nbxAuthInput{
  width:100%;
  border:1px solid rgba(0,0,0,.18);
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
  outline:none;
}
.nbxAuthInput:focus{border-color:rgba(0,0,0,.35)}
.nbxPassWrap{
  position:relative;
  display:flex;
  align-items:center;
}
.nbxPassToggle{
  position:absolute;
  inset-inline-end:8px;
  border:0;
  background:transparent;
  cursor:pointer;
  padding:6px 8px;
  font-size:16px;
}
.nbxAuthBtn{
  width:100%;
  border:0;
  margin-top:12px;
  padding:11px 0;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
  background:#2185D5;
  color:white;
}
.nbxAuthBtn:hover{background:#2185D5;color:white;}
.nbxAuthMsg{
  margin-top:10px;
  font-size:13px;
  min-height:18px;
}
.nbxAuthMsg.is-err{color:#b00020}
.nbxAuthMsg.is-ok{color:#0f7b3a}
.nbxGrid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media (max-width: 480px){
  .nbxGrid2{grid-template-columns:1fr}
  .nbxAuthBox{margin-top:6vh}
}

.nbxAuthTab:hover{background:white;color:black}
.nbxAuthTab.is-active:hover{background:black;color:white}

.nbxPassToggle svg{width:18px;height:18px;display:block;fill:black}
.nbxPassToggle{color:#111}

/* حذف کامل outline / ring روی دکمه چشم داخل پاپ‌آپ */
#nbxAuthOverlay .nbxPassToggle,
#nbxAuthOverlay .nbxPassToggle:focus,
#nbxAuthOverlay .nbxPassToggle:focus-visible,
#nbxAuthOverlay .nbxPassToggle:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    background: transparent !important;
}

/* بعضی قالب‌ها روی svg هم فوکوس/هایلایت میندازن */
#nbxAuthOverlay .nbxPassToggle svg {
    outline: none !important;
    box-shadow: none !important;
}

#nbxAuthOverlay .nbxPassToggle {
    -webkit-tap-highlight-color: transparent;
}


#nbxAuthOverlay,
#nbxAuthOverlay *{
  font-family:inherit !important;
}

#nbxAuthOverlay .nbxInputError{
  border-color:#b00020 !important;
  background:#fff7f7 !important;
}

.nbxPassHint{
  margin-top:6px;
  font-size:12px;
  line-height:1.8;
  color:#666;
}
