/* File: /public/assets/css/pages/recuperar-password.css */

/* ===== LAYOUT GENERAL / FOOTER AL FONDO ===== */

.password-reset-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.password-reset-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.password-reset-section {
  width: 100%;
  padding: 3rem 1.5rem;
}

.password-reset-layout {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ===== TARJETA ===== */

.password-reset-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 2.8rem 2.6rem 3rem;
  background-color: var(--color-tarjeta);
  border-radius: var(--border-radius-12);
  box-shadow: var(--sombra-base);
  border: 1px solid var(--color-borde-1);
}

/* ===== CABECERA ===== */

.password-reset-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.password-reset-icon-circle {
  width: var(--icono-80);
  height: var(--icono-80);
  border-radius: var(--border-radius-circular);
  background-color: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-reset-icon {
  width: var(--icono-40);
  height: var(--icono-40);
  object-fit: contain;
}

.password-reset-title {
  margin: 0;
  font-family: var(--fuente-secundaria);
  font-size: var(--texto-24);
  font-weight: 700;
  color: var(--color-texto-principal);
  text-align: center;
}

.password-reset-subtitle {
  margin: 0;
  font-family: var(--fuente-principal);
  font-size: var(--texto-14);
  line-height: 1.6;
  color: var(--color-texto-secundario);
  text-align: center;
  max-width: 34ch;
}

/* ===== ALERTAS / MENSAJES ===== */

.password-reset-alert {
  margin: 0 0 1.25rem;
  padding: 1rem 1rem 1rem;
  border-radius: var(--border-radius-10);
  border: 1px solid transparent;
}

.password-reset-alert--success {
  color: #17633c;
  border-color: rgba(23, 99, 60, 0.18);
  background: rgba(23, 99, 60, 0.06);
}

.password-reset-alert--error {
  color: var(--color-peligro);
  border-color: rgba(200, 0, 0, 0.18);
  background: rgba(200, 0, 0, 0.06);
}

.password-reset-alert-text {
  margin: 0;
  font-family: var(--fuente-principal);
  font-size: var(--texto-12);
  line-height: 1.5;
}

.password-reset-alert-help {
  margin: 0.55rem 0 0;
  font-family: var(--fuente-principal);
  font-size: var(--texto-12);
  line-height: 1.45;
  color: inherit;
  opacity: 0.9;
}

.password-reset-alert--limit .password-reset-alert-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

/* ===== FORMULARIO ===== */

.password-reset-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.password-reset-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.password-reset-label {
  font-family: var(--fuente-principal);
  font-size: var(--texto-12);
  font-weight: 600;
  color: var(--color-texto-principal);
}

.password-reset-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--color-borde-input);
  border-radius: var(--border-radius-6);
  padding: 0.75rem 1.2rem;
  background-color: var(--color-blanco);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.password-reset-input-wrapper:hover {
  background-color: #f9f9f9;
  border-color: var(--color-borde-2);
}

.password-reset-input-wrapper:focus-within {
  border-color: var(--color-acento);
  box-shadow: 0 0 0 3px rgba(0, 90, 44, 0.12);
}

.password-reset-input-icon-img {
  width: var(--icono-20);
  height: var(--icono-20);
  object-fit: contain;
}

.password-reset-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--fuente-principal);
  font-size: var(--texto-14);
  color: var(--color-texto-principal);
  background-color: transparent;
  padding: 0.25rem 0;
}

.password-reset-input::placeholder {
  color: var(--color-placeholder);
}

/* ===== BOTÓN PRINCIPAL ===== */

.password-reset-submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
}

.password-reset-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 1rem 2.6rem;
  border-radius: var(--border-radius-10);
  border: none;
  background-color: var(--color-acento);
  color: var(--color-blanco);
  font-family: var(--fuente-principal);
  font-size: var(--texto-14);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    opacity 0.15s ease,
    box-shadow 0.15s ease;
}

.password-reset-submit:hover {
  background-color: var(--color-acento-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 90, 44, 0.14);
}

.password-reset-submit:active {
  transform: scale(0.97);
  opacity: 0.92;
}

.password-reset-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== ACCIONES SECUNDARIAS ===== */

.password-reset-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.4rem;
}

.password-reset-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 0.95rem 1.4rem;
  border: 1px solid var(--color-borde-1);
  border-radius: var(--border-radius-10);
  background-color: var(--color-blanco);
  color: var(--color-texto-principal);
  text-decoration: none;
  font-family: var(--fuente-principal);
  font-size: var(--texto-13);
  font-weight: 600;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.password-reset-back-link:hover {
  background-color: #f8f8f8;
  border-color: var(--color-borde-2);
  color: var(--color-acento);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.password-reset-back-link:active {
  transform: scale(0.98);
}

/* ===== CONTADOR RATE LIMIT ===== */

#password-reset-rate-limit-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 600px) {
  .password-reset-card {
    padding: 2.2rem 1.6rem 2.5rem;
  }

  .password-reset-submit,
  .password-reset-back-link {
    width: 100%;
    min-width: 0;
  }

  .password-reset-actions,
  .password-reset-submit-wrapper {
    width: 100%;
  }
}
