/* ==========================================================================
PÁGINAS: RECUPERACIÓN Y RESETEO DE CONTRASEÑA
========================================================================== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        var(--dnblp-teal) 0%,
        var(--dnblp-cyan) 50%,
        var(--dnblp-sage) 100%);
    padding: 20px;
}

.app-container > header .header-right{
  display: none;
}

.auth-container {
  max-width: 520px;
  width: 100%; /* Asegura que sea responsivo en móviles */
  margin: 4rem auto;
  padding: 2.5rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-200, #e5e7eb);

  box-sizing: border-box;
}

.auth-header h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dnblp-teal, #0a6677);
  text-align: center;
}

.auth-header p {
  margin: 0 0 2rem 0;
  font-size: 0.95rem;
  color: var(--gray-600, #4b5563);
  text-align: center;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.5rem; /* Un poco más de espacio entre campos */
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700, #374151);
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;

  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--dnblp-teal, #0a6677);
  box-shadow: 0 0 0 3px rgba(10, 102, 119, 0.15);
}

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.85rem; /* Ligeramente más legible */
  color: var(--gray-500, #6b7280);
  line-height: 1.4;
}

.btn-primary-full {
  width: 100%;
  padding: 0.9rem; /* Un poco más alto para equilibrar con los inputs */
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--dnblp-teal, #0a6677);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-sizing: border-box;
}

.btn-primary-full:hover:not(:disabled) {
  background-color: #085260;
}

.btn-primary-full:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary-full:disabled {
  background-color: var(--gray-400, #9ca3af);
  cursor: not-allowed;
  opacity: 0.7;
}

.auth-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200, #e5e7eb);
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-600, #4b5563);
}

.auth-footer a {
  color: var(--dnblp-teal, #0a6677);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  text-decoration: underline;
  color: #085260;
}

/* Responsive: En móviles se adapta perfectamente */
@media (max-width: 640px) {
  .auth-container {
    margin: 2rem 1rem;
    padding: 1.5rem;
    max-width: 100%; /* En móviles ocupa todo el ancho disponible menos los márgenes */
  }

  .app-container > header{
    display: none;
  }

}

/* ==========================================================================
ANULACIÓN DE GRID GLOBAL PARA FORMULARIOS DE AUTENTICACIÓN
========================================================================== */

/* Forzamos que los grupos de formulario aquí sean bloques apilados normales */
.auth-container .form-group,
.auth-form .form-group {
  display: block !important; /* El !important asegura que gane al grid global */
  gap: 0;                    /* Resetea cualquier gap heredado del grid */
  margin-bottom: 1.5rem;     /* Mantiene el espaciado vertical limpio */
}

/* Aseguramos que el label y el input ocupen el 100% del ancho disponible */
.auth-container .form-group label,
.auth-container .form-group input {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
