// =====================================
// Forgot Password Page Styles (Responsive)
// =====================================

.forgot-password-page {
  width: 90%;
  max-width: 520px;
  margin: 10rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #222;
  transition: background 0.3s ease, color 0.3s ease;

  h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: #1a73e8;
  }

  p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #555;
  }

  .forgot-form {
    display: grid;
    gap: 1rem;

    label {
      font-weight: 500;
      color: #222;
    }

    input[type="text"],
    input[type="password"] {
      padding: 1rem 0.8rem;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 1rem;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;

      &:focus {
        border-color: #1a73e8;
        box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
        outline: none;
      }
    }

    button[type="submit"] {
      background-color: #1a73e8;
      color: #fff;
      font-weight: 600;
      padding: 1rem;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.2s ease;

      &:hover:not(:disabled) {
        background-color: #155fc0;
        transform: translateY(-2px);
      }

      &:disabled {
        background-color: #b3d0ff;
        cursor: not-allowed;
      }
    }

    a {
      display: inline-block;
      font-size: 0.9rem;
      color: #1a73e8;
      text-decoration: none;
      text-align: center;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

// =====================================
// Modo oscuro
// =====================================

[data-theme="dark"] .forgot-password-page {
  background: #1e1e1e;
  color: #eee;

  input[type="text"],
  input[type="password"] {
    background: #2a2a2a;
    border-color: #444;
    color: #f3f3f3;

    &:focus {
      border-color: #4a90e2;
      box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    }
  }

  button[type="submit"] {
    background-color: #4a90e2;

    &:hover:not(:disabled) {
      background-color: #357ab8;
    }
  }

  a {
    color: #82b1ff;
  }
}

// =====================================
// Responsividad
// =====================================

// --- Teléfonos pequeños ---
@media (max-width: 480px) {
  .forgot-password-page {
    margin: 15rem auto;
    padding: 1.5rem;
    width: 92%;
    box-shadow: none;

    h1 {
      font-size: 1.6rem;
    }

    p {
      font-size: 0.95rem;
      margin-bottom: 1.2rem;
    }

    .forgot-form {
      input[type="text"],
      input[type="password"] {
        font-size: 0.95rem;
        padding: 0.9rem;
      }

      button[type="submit"] {
        font-size: 0.95rem;
        padding: 0.9rem;
      }
    }
  }
}

// --- Tablets (iPad y similares) ---
@media (min-width: 768px) and (max-width: 1024px) {
  .forgot-password-page {
    margin: 8rem auto;
    padding: 3rem 2.5rem;
    max-width: 600px;
    font-size: 1.05rem;

    h1 {
      font-size: 2.1rem;
    }

    p {
      font-size: 1.05rem;
      margin-bottom: 2rem;
    }

    .forgot-form {
      gap: 1.2rem;

      input[type="text"],
      input[type="password"] {
        font-size: 1.05rem;
        padding: 1rem;
      }

      button[type="submit"] {
        padding: 1.2rem;
      }
    }
  }
}

// --- Escritorio grande ---
@media (min-width: 1280px) {
  .forgot-password-page {
    margin: 12rem auto;
    padding: 3rem;
    max-width: 520px;
  }
}
