import React, { useState } from 'react'; import { X, Mail, Lock, ArrowRight, Loader2, CheckCircle } from 'lucide-react'; import { motion, AnimatePresence } from 'framer-motion'; const LoginModal = ({ isOpen, onClose, onLoginSuccess }) => { const [isLoading, setIsLoading] = useState(false); const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const handleLogin = (e) => { e.preventDefault(); setIsLoading(true); // Simulate API call setTimeout(() => { setIsLoading(false); onLoginSuccess(); }, 1500); }; const handleGoogleLogin = () => { setIsLoading(true); // Simulate Google Auth setTimeout(() => { setIsLoading(false); onLoginSuccess(); }, 1500); }; return ( {isOpen && (
{/* Backdrop */} {/* Modal */} {/* Header */}

Welcome Back

Sign in to continue your research

{/* Body */}
{/* Google Button */}
OR
{/* Email Form */}
setEmail(e.target.value)} className="w-full pl-10 pr-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all text-sm text-slate-900 placeholder:text-slate-400" placeholder="researcher@university.edu" />
setPassword(e.target.value)} className="w-full pl-10 pr-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all text-sm text-slate-900 placeholder:text-slate-400" placeholder="••••••••" />

Don't have an account?

)}
); }; export default LoginModal;