﻿/* static/forgot.css */
/* Estilos extraidos desde templates/forgot.html */
body {
      font-family: 'Poppins', sans-serif;
      background-color: #fdfaff;
      min-height: 100vh;
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .formulario {
      background: #ffffff;
      padding: 40px 30px;
      border-radius: 16px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.08);
      width: 100%;
      max-width: 420px;
    }
    
    h2 {
      text-align: center;
      color: #4a235a;
      margin-bottom: 6px;
    }
    
    p.subtitle {
      text-align: center;
      color: #6b7280;
      margin: 0 0 30px;
      line-height: 1.5;
    }
    
    /* Espaciado profesional del formulario */
    form label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: #1a1a2e;
    }
    
    form input[type="email"] {
      margin-bottom: 24px;
    }
    
    form button[type="submit"] {
      margin-top: 0;
      position: relative;
    }
    
    /* ✅ SPINNER de carga */
    .btn-loading {
      pointer-events: none;
      opacity: 0.7;
    }
    
    .btn-loading::after {
      content: "";
      position: absolute;
      width: 16px;
      height: 16px;
      top: 50%;
      left: 50%;
      margin-left: -8px;
      margin-top: -8px;
      border: 2px solid #ffffff;
      border-radius: 50%;
      border-top-color: transparent;
      animation: spinner 0.6s linear infinite;
    }
    
    @keyframes spinner {
      to { transform: rotate(360deg); }
    }
    
    /* ✅ Mensajes de éxito/error mejorados */
    .alert {
      padding: 14px 18px;
      border-radius: 10px;
      margin-bottom: 20px;
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      gap: 10px;
      animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .alert.success {
      background: #f0fdf4;
      color: #065f46;
      border: 1px solid #bbf7d0;
    }
    
    .alert.success::before {
      content: "✓";
      display: flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      background: #10b981;
      color: white;
      border-radius: 50%;
      font-weight: bold;
      flex-shrink: 0;
    }
    
    .alert.error {
      background: #fff5f5;
      color: #991b1b;
      border: 1px solid #fecaca;
    }
    
    .alert.error::before {
      content: "✕";
      display: flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      background: #ef4444;
      color: white;
      border-radius: 50%;
      font-weight: bold;
      flex-shrink: 0;
    }

/* Estilos inline extraidos desde templates/forgot.html */
.forgot-inline-001 { text-align:center; margin-top: 30px; }

