/* NasGamers beta8.30 member login popup. The existing Blackfyre form is MOVED
 * here during the modal and returned on close; no duplicate login handler. */
.nas-hlx-login-modal[hidden],
.nas-hlx-login-modal [hidden] { display: none !important; }
.nas-hlx-login-modal {
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; place-items: center; padding: 16px; box-sizing: border-box;
}
.nas-hlx-login-backdrop {
  position: absolute; inset: 0; background: rgba(0, 5, 12, .82);
  backdrop-filter: blur(3px);
}
.nas-hlx-login-dialog {
  position: relative; z-index: 1; width: min(100%, 440px);
  max-height: min(90vh, 800px); overflow: auto;
  padding: 26px; background: linear-gradient(#282b30,#171a1d);
  border: 1px solid #3c5262; box-shadow: 0 18px 65px #000c;
  color: #eaf4fa; text-align: left; box-sizing: border-box;
}
.nas-hlx-login-dialog h3 {
  margin: 0 35px 15px 0; color: #edf6ff; font-size: 21px;
}
.nas-hlx-login-required-note {
  box-sizing: border-box; margin: 0 0 18px; padding: 11px;
  color: #eaf7ff; background: #16415b;
  border-left: 3px solid #1bb8ea; font: 600 13px/1.5 Arial, sans-serif;
}
.nas-hlx-login-dismiss {
  position: absolute; right: 10px; top: 8px; z-index: 2;
  border: 0; color: #eff5fa; background: transparent;
  font-size: 25px; cursor: pointer;
}
body.nas-hlx-login-modal-open { overflow: hidden; }
/* The header popover must be visible as a normal child of this dialog,
 * regardless of theme inline show/hide/positioning or hover effects. */
.nas-hlx-login-slot,
.nas-hlx-login-slot #mcTooltipWrapper,
.nas-hlx-login-slot #mcTooltip,
.nas-hlx-login-slot #loginTooltip,
.nas-hlx-login-slot .login-tooltip-wrapper,
.nas-hlx-login-slot .login-tooltip,
.nas-hlx-login-slot .nas-hlx-portaled-header-login {
  position: static !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  top: auto !important; left: auto !important; right: auto !important;
  bottom: auto !important; width: 100% !important; max-width: 100% !important;
  min-width: 0 !important; height: auto !important;
  margin: 0 !important; padding: 0 !important;
  z-index: auto !important;
  overflow: visible !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  background: transparent !important; border: 0 !important;
  box-shadow: none !important;
}
.nas-hlx-login-slot #mcTooltip::before,
.nas-hlx-login-slot .login-tooltip::before,
.nas-hlx-login-slot .login-tooltip::after { display: none !important; }
.nas-hlx-login-dialog form { max-width: 100%; color: #e6ebef; }
.nas-hlx-login-dialog input[type="text"],
.nas-hlx-login-dialog input[type="email"],
.nas-hlx-login-dialog input[type="password"] {
  display: block; width: 100%; max-width: 100%; min-height: 40px;
  padding: 9px 11px; box-sizing: border-box;
  background: #101419; border: 1px solid #080b0e; color: #f3f7fb;
}
.nas-hlx-login-dialog input[type="submit"],
.nas-hlx-login-dialog button[type="submit"] {
  cursor: pointer; background: linear-gradient(#1ab9e7,#006b99);
  color: #fff; border: 1px solid #00abde; padding: 10px 18px;
}
.nas-hlx-login-unavailable { margin: 15px 0 0; color: #ffde9f; }
/* Preserve the guest replay's pre-login Play poster and controls. */
.nas-hlx-guest-replay-gate {
  padding: 16px 18px; margin: 14px 0;
  background: #16242d; border-left: 4px solid #09b8ee; color: #f2f6fa;
}
.nas-hlx-guest-replay-gate p { margin: 6px 0 12px; }
.nas-hlx-guest-replay-gate button {
  cursor: pointer; border: 1px solid #079aca;
  padding: 9px 15px; background: #087dad;
  color: white; font-weight: 700;
}
@media(max-width:500px) {
  .nas-hlx-login-dialog { padding: 18px; }
  .nas-hlx-login-dialog h3 { font-size: 18px; }
}
