"use client"; import { useState } from 'react'; import Link from 'next/link'; import { Loader2 } from 'lucide-react'; export default function ResetPassword() { const [email, setEmail] = useState(''); const [error, setError] = useState(null); const [success, setSuccess] = useState(false); const [isLoading, setIsLoading] = useState(false); const handleResetPassword = async (e: React.FormEvent) => { e.preventDefault(); setError(null); setSuccess(false); setIsLoading(true); try { // Simulate API delay await new Promise(resolve => setTimeout(resolve, 1000)); // Demo mode - always succeed setSuccess(true); } catch (error) { console.error('Password reset error:', error); setError('An error occurred while processing your request'); } finally { setIsLoading(false); } }; return (

Reset your password

Enter your email address and we'll send you a link to reset your password

Demo Mode: Reset password functionality is simulated

{error && (
{error}
)} {success && (
Demo Mode: Password reset simulation successful
)}
setEmail(e.target.value)} required className="mt-1 block w-full rounded-lg bg-card p-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-accent" placeholder="you@example.com" />
Back to sign in
); }