/* NSFW Nation — login gate (stamp / charcoal) */

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.login-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(220, 20, 38, 0.18), transparent 60%),
    rgba(4, 2, 3, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-modal-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  width: min(100%, 26rem);
  transform: translateY(0.55rem) scale(0.985);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease;
}

.login-modal.is-open .login-modal-shell {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.login-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border: 2px solid #8a0010;
  border-radius: 0.12rem;
  background:
    linear-gradient(145deg, rgba(220, 20, 38, 0.08), transparent 42%),
    linear-gradient(180deg, #161416 0%, #0a090b 100%);
  box-shadow:
    0 1.5rem 3rem rgba(0, 0, 0, 0.65),
    10px 10px 0 rgba(90, 0, 10, 0.42);
  padding: 1.65rem 1.45rem 1.5rem;
}

.login-modal-panel::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(220, 20, 38, 0.28);
  pointer-events: none;
}

.login-modal-panel::after {
  content: "18+";
  position: absolute;
  top: 1.1rem;
  right: 3.25rem;
  padding: 0.18rem 0.4rem;
  border: 1px solid rgba(220, 20, 38, 0.55);
  background: rgba(220, 20, 38, 0.12);
  color: #ff1f33;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.login-modal-offer,
.recharge-offer,
.home-hub-offer,
[data-nation-offer-board] {
  display: none !important;
}

.recharge-modal-sheet.has-offer {
  /* layout sem coluna de oferta */
}

.recharge-modal-sheet.has-offer .recharge-modal-layout,
.recharge-modal-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}


.login-modal-offer__board {
  width: 100%;
  min-height: 17rem;
}

@media (min-width: 860px) {
  .login-modal-shell {
    flex-direction: row;
    width: min(100%, 28rem);
    align-items: stretch;
  }

  .login-modal-panel {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .login-modal-offer {
    display: none !important;
  }

  .login-modal-offer__board {
    height: 100%;
    min-height: 0;
  }
}

.login-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid rgba(240, 238, 236, 0.16);
  border-radius: 0.1rem;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(240, 238, 236, 0.7);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.login-modal-close:hover {
  border-color: rgba(220, 20, 38, 0.55);
  background: rgba(220, 20, 38, 0.14);
  color: #fff;
}

.login-modal-close:active {
  transform: scale(0.94);
}

.login-modal-close .material-symbols-outlined {
  font-size: 1.1rem;
  line-height: 1;
}

.login-modal-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-bottom: 1.35rem;
  padding-right: 5.5rem;
}

.login-modal-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 0.45rem;
  color: #ff1f33;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-modal-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-family: Archivo, "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.login-modal-subtitle {
  position: relative;
  z-index: 1;
  margin: 0.7rem 0 0;
  max-width: 34ch;
  color: rgba(240, 238, 236, 0.58);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
}

.login-modal-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.55rem;
}

.login-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.12rem;
  background: rgba(255, 255, 255, 0.03);
}

.login-modal-tabs[hidden],
.login-modal-field[hidden] {
  display: none !important;
}

.login-modal-tab {
  min-height: 2.35rem;
  border: 0;
  border-radius: 0.08rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.login-modal-tab:hover {
  color: #fff;
}

.login-modal-tab.is-active {
  background: #dc1426;
  color: #fff;
}

.login-modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.login-modal-label {
  color: rgba(240, 238, 236, 0.55);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.login-modal-input-wrap {
  position: relative;
}

.login-modal-input {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid rgba(240, 238, 236, 0.12);
  border-left: 3px solid rgba(220, 20, 38, 0.55);
  border-radius: 0.1rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0 0.9rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.login-modal-input::placeholder {
  color: rgba(240, 238, 236, 0.28);
}

.login-modal-input:focus {
  border-color: rgba(220, 20, 38, 0.75);
  border-left-color: #dc1426;
  background: rgba(220, 20, 38, 0.08);
  box-shadow: 3px 3px 0 rgba(90, 0, 10, 0.35);
}

.login-modal-input--password {
  padding-right: 2.75rem;
}

.login-modal-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 0;
  border-radius: 0.1rem;
  background: transparent;
  color: rgba(240, 238, 236, 0.45);
  transform: translateY(-50%);
  transition: color 0.16s ease, background 0.16s ease;
}

.login-modal-password-toggle:hover,
.login-modal-password-toggle:active {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.login-modal-password-toggle .material-symbols-outlined {
  font-size: 1.15rem;
  line-height: 1;
}

.login-modal-hint {
  margin: 0;
  color: rgba(240, 238, 236, 0.38);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.35;
}

.login-modal-turnstile-wrap {
  margin: 0.15rem 0 0.35rem;
  min-height: 65px;
}

.login-modal-status {
  min-height: 1.15rem;
  margin: 0;
  color: #ff6b78;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.login-modal-status.is-success {
  color: #7dffa0;
}

.login-modal-submit {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 0.1rem;
  background: #dc1426;
  box-shadow: 5px 5px 0 rgba(90, 0, 10, 0.55);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.login-modal-submit:hover {
  background: #ff1f33;
}

.login-modal-submit:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(90, 0, 10, 0.55);
}

.login-modal-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 420px) {
  .login-modal-panel {
    padding: 1.35rem 1.15rem 1.25rem;
  }

  .login-modal-panel::after {
    right: 3rem;
  }
}
