/* ====== Estilos para la página de recuperación de contraseña ====== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 0;          /* espacio arriba y abajo */
  overflow-y: auto;         /* permite hacer scroll vertical */

  background: 
    radial-gradient(ellipse at 20% 30%, rgba(0, 150, 255, 0.55), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(30, 90, 255, 0.55), transparent 60%),
    radial-gradient(ellipse at 60% 20%, rgba(0, 200, 255, 0.35), transparent 70%),
    radial-gradient(ellipse at 10% 90%, rgba(40, 120, 255, 0.45), transparent 70%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.08), transparent 70%),
    linear-gradient(145deg, #0A1A5E 0%, #102CA8 40%, #1A3FF0 100%);
  background-blend-mode: screen, screen, overlay, overlay, soft-light, normal;
}

/* Tarjeta principal */
.auth-page {
  width: min(520px, 100% - 32px);   /* Tarjeta angosta */
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);
  padding: 28px 32px 24px;
  margin: auto;
}

@media (max-width: 540px) {
  .auth-page {
    border-radius: 24px;
    padding: 24px 20px;
  }
}

/* Header */
.login-header {
  text-align: center;
  margin-bottom: 20px;
}

.login-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #020617;
}

.login-header p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #64748b;
}

.header-icon {
  width: 85px;
  height: 85px;
  border-radius: 999px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.header-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Alertas */
.alert {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert.error {
  background: #fee2e2;
  color: #b91c1c;
}

.alert.exito {
  background: #dcfce7;
  color: #166534;
}

/* Formularios */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Icono dentro del input */
.icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  pointer-events: none;
}

.icon svg {
  width: 18px;
  height: 18px;
}

/* Botón "Mostrar" alineado al centro del input */
.toggle-pass {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 12px;
  color: #2563eb;
  cursor: pointer;
  padding: 0;
}

/* Labels e inputs */
.label {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
}

.input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  padding: 12px 16px 12px 44px;
  font-size: 14px;
  outline: none;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input::placeholder {
  color: #94a3b8;
}

.input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* Texto de ayuda */
.helper {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  padding-left: 4px;
}

/* Footer de formularios */
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

/* Botón principal */
.btn-primary {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Links */
.link {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

/* Separador */
hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 18px 0;
}
