import React, { useState } from 'react'; import { Button } from '../../ui/button'; import { Input } from '../../ui/input'; import { Label } from '../../ui/label'; import { XerticaLogo } from '../../brand/xertica-logo'; import { ImageWithFallback } from '../../figma/ImageWithFallback'; import { LanguageSelector } from '../../brand/language-selector'; import { ArrowLeft, Lock } from 'lucide-react'; import { useNavigate } from 'react-router-dom'; /** * Forgot Password Page component. * * @description * A screen that allows users to request a password reset link via email. * Includes a hero image side-panel (desktop) and alternative social login * options similar to the main Login page. * * @ai-rules * 1. Navigation: Successfully submitting the email triggers a navigation to `/verify-email`. * 2. Visuals: Keeps consistency with `LoginPage` in terms of layout and branding. */ export function ForgotPasswordPage() { const navigate = useNavigate(); const [email, setEmail] = useState(''); const [isLoading, setIsLoading] = useState(false); const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); setIsLoading(true); // Simulate email sending await new Promise(resolve => setTimeout(resolve, 1500)); // Navigate to verification screen navigate('/verify-email', { state: { email } }); setIsLoading(false); }; const handleSocialLogin = (_provider: string) => { // Wire your SSO/social provider integration here }; return (
{/* Left side - Full background image */}
{/* Background image filling all space */} {/* Gradient overlay */}
{/* Right side - Form */}
{/* Language selector in the top right corner */}
{/* Mobile background gradient */}
{/* Form header */}

Recuperar senha

Digite seu e-mail e enviaremos as instruções para redefinir sua senha

{/* Form */}
setEmail(e.target.value)} />
{/* Divider */}
ou continue com
{/* Social/SSO login options */}
{/* Google */} {/* MT Login */} {/* gov.br */}
); }