/* ============================================================
   ESTILOS DE AUTENTICACIÓN NATUR PARADISE
   Paleta del sitio: verde primary #168a01, verde oscuro #18402f
   Fuente: Manrope (body del sitio)
   ============================================================ */

/* ============ BOTÓN INICIAR SESIÓN ============ */
.np-login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #168a01;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.np-login-btn:hover {
  background: #127001;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 138, 1, 0.25);
}

/* ============ BOTÓN USUARIO LOGUEADO ============ */
.np-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  color: #168a01;
  border: 1.5px solid #168a01;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  max-width: 200px;
  position: relative;
}

.np-user-btn:hover {
  background: rgba(22, 138, 1, 0.08);
}

.np-user-btn .np-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

/* ============ MENÚ USUARIO ============ */
.np-user-menu-wrapper {
  position: relative;
}

.np-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 270px;
  background: #ffffff;
  border: 1px solid rgba(25, 28, 27, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(24, 64, 47, 0.15);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1000;
  font-family: 'Manrope', sans-serif;
}

.np-user-menu.np-menu-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.np-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: #191c1b;
}

.np-menu-header svg {
  flex-shrink: 0;
  color: #168a01;
}

.np-menu-header-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.np-menu-header-info strong {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-user-email {
  font-size: 12px;
  color: rgba(25, 28, 27, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-menu-divider {
  height: 1px;
  background: rgba(25, 28, 27, 0.1);
  margin: 8px 0;
}

.np-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  background: transparent;
  color: #191c1b;
  border: none;
  border-radius: 7px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.np-menu-item:hover {
  background: rgba(22, 138, 1, 0.08);
  color: #168a01;
}

.np-menu-item-admin {
  background: linear-gradient(135deg, #168a01, #305846);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 4px;
}

.np-menu-item-admin:hover {
  background: linear-gradient(135deg, #18402f, #168a01);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ============ MODAL OVERLAY ============ */
.np-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(24, 64, 47, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: npFadeIn 0.2s ease;
  font-family: 'Manrope', sans-serif;
}

@keyframes npFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.np-modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 14px;
  padding: 36px 32px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  max-height: 90vh;
  overflow-y: auto;
  animation: npSlideUp 0.25s ease;
}

@keyframes npSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.np-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(25, 28, 27, 0.06);
  color: #191c1b;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: 'Manrope', sans-serif;
}

.np-modal-close:hover {
  background: rgba(25, 28, 27, 0.14);
}

/* ============ TABS ============ */
.np-modal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(25, 28, 27, 0.1);
  margin-bottom: 24px;
}

.np-tab {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  color: rgba(25, 28, 27, 0.5);
  border: none;
  border-bottom: 2px solid transparent;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -1px;
}

.np-tab:hover {
  color: rgba(25, 28, 27, 0.8);
}

.np-tab-active {
  color: #168a01;
  border-bottom-color: #168a01;
}

/* ============ TAB CONTENT ============ */
.np-tab-content {
  display: none;
}

.np-tab-content-active {
  display: block;
}

/* ============ BOTÓN GOOGLE ============ */
.np-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: #ffffff;
  color: #191c1b;
  border: 1.5px solid rgba(25, 28, 27, 0.15);
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.np-google-btn:hover {
  border-color: #168a01;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============ DIVIDER ============ */
.np-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: rgba(25, 28, 27, 0.4);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.np-divider::before,
.np-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(25, 28, 27, 0.15);
}

.np-divider span {
  padding: 0 14px;
}

/* ============ CAMPOS DE FORMULARIO ============ */
.np-field {
  margin-bottom: 14px;
}

.np-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.np-field-row .np-field {
  margin-bottom: 14px;
}

.np-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #191c1b;
  font-family: 'Manrope', sans-serif;
}

.np-field-opt {
  font-weight: 400;
  color: rgba(25, 28, 27, 0.5);
  font-size: 12px;
}

.np-field input {
  width: 100%;
  padding: 11px 14px;
  background: #ffffff;
  color: #191c1b;
  border: 1.5px solid rgba(25, 28, 27, 0.15);
  border-radius: 7px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.np-field input:focus {
  outline: none;
  border-color: #168a01;
}

.np-field input::placeholder {
  color: rgba(25, 28, 27, 0.35);
}

/* ============ BOTÓN SUBMIT ============ */
.np-submit-btn {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background: #168a01;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.np-submit-btn:hover {
  background: #127001;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 138, 1, 0.3);
}

/* ============ ERROR ============ */
.np-error {
  padding: 10px 14px;
  margin-bottom: 14px;
  background: rgba(186, 26, 26, 0.08);
  color: #ba1a1a;
  border: 1px solid rgba(186, 26, 26, 0.2);
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  /* En mobile, en el header desktop (oculto) los textos se ocultan para ahorrar espacio */
  /* Pero el botón mobile dentro del menú hamburguesa SÍ debe mostrar el texto */
  .np-login-btn:not(#np-mobile-login-btn) span,
  .np-user-btn span {
    display: none;
  }

  .np-login-btn:not(#np-mobile-login-btn),
  .np-user-btn {
    padding: 10px 12px;
  }
}

@media (max-width: 640px) {
  .np-modal-box {
    padding: 30px 22px 24px;
  }

  .np-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .np-user-menu {
    right: -10px;
    min-width: 240px;
  }
}