/* ==================== OVERLAY AUTH MODAL ==================== */
#nxAuth {
  position: fixed;
  inset: 0;
  display: none; /* Se mostrará con is-open */
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2147483647;
  overflow-y: auto;
}

/* Mostrar modal */
#nxAuth.is-open {
  display: block;
}

/* Contenedor del modal */
#nxAuth > .nx-auth {
  background: var(--nx-surface-1);
  color: var(--nx-text-dark);
  width: 100%;
  max-width: 420px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  font-family: var(--nx-font-base);
}

/* Header */
.nx-auth__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.nx-auth__header img {
  width: 36px;
  height: 36px;
}

.nx-auth__header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--nx-text-dark);
}

/* Formulario */
.nx-auth__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nx-auth__form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--nx-text-dark);
}

.nx-auth__form input {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  border-radius: var(--nx-radius-sm);
  border: 1px solid var(--nx-border-light);
  background: var(--nx-surface-2);
  color: var(--nx-text-dark);
  box-sizing: border-box;
}

.nx-auth__form input:focus {
  outline: none;
  border-color: var(--nx-color-accent);
  background: var(--nx-surface-3);
}

/* Link de recuperación de contraseña */
.nx-auth__link {
  font-size: 13px;
  color: var(--nx-color-accent);
  text-decoration: none;
  margin-bottom: 12px;
}

.nx-auth__link:hover {
  text-decoration: underline;
}

/* Botón Ingresar */
.nx-auth__form .nx-btn--primary {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--nx-radius-md);
  background: var(--nx-color-button-b);
  color: #fff;
  border: none;
  cursor: pointer;
}

.nx-auth__form .nx-btn--primary:active {
  transform: scale(0.97);
}

/* Footer del modal */
.nx-auth__footer {
  margin-top: 16px;
  font-size: 14px;
  color: var(--nx-text-dark);
  text-align: center;
}

.nx-auth__footer button.nx-auth__switch {
  background: none;
  border: none;
  color: var(--nx-color-accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
}

.nx-auth__footer button.nx-auth__switch:active {
  transform: scale(0.97);
}
/* Centrar solo el botón de login del modal */
.nx-btn--modal-login {
  display: flex;           /* flexbox para centrar contenido */
  align-items: center;     /* centrar verticalmente */
  justify-content: center; /* centrar horizontalmente */
  text-align: center;      /* útil si el texto ocupa más de una línea */
}


/* -------- Social login -------- */
.nx-auth__social {
  text-align: center;
  margin: 16px 0;
  font-size: 14px;
  color: var(--nx-text-dark);
}

.nx-auth__social p {
  margin-bottom: 8px;
}

/* Botón Google */
.nx-btn--google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: var(--nx-radius-md);
  background: #fff;
  border: 1px solid #ddd;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nx-btn--google img {
  display: inline-block;
}

.nx-btn--google:active {
  transform: scale(0.97);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}


.nx-auth__password-wrapper {
  position: relative;
  width: 100%;
}

.nx-auth__password-wrapper input {
  width: 100%;
  padding-right: 40px; /* espacio para el ojito */
  box-sizing: border-box;
}

.nx-auth__toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.nx-recover__link{
  border: 0px;
  background: transparent;
  margin: 0px;
}