import { useState } from "react"; import { useNavigate } from "react-router-dom"; import Layout from "@/components/Layout"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Badge } from "@/components/ui/badge"; import LoadingScreen from "@/components/LoadingScreen"; import { LogIn, ArrowRight, Shield, Sparkles, Github, Mail, Lock, User } from "lucide-react"; export default function Login() { const [isLoading, setIsLoading] = useState(false); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const navigate = useNavigate(); const handleLogin = async (e: React.FormEvent) => { e.preventDefault(); setIsLoading(true); // Simulate login process setTimeout(() => { setIsLoading(false); navigate("/dashboard"); }, 2000); }; const handleSocialLogin = (provider: string) => { setIsLoading(true); // Simulate social login setTimeout(() => { setIsLoading(false); navigate("/dashboard"); }, 1500); }; if (isLoading) { return ; } return ( {/* Floating particles effect */} {[...Array(20)].map((_, i) => ( ))} Welcome Back Sign in to your AeThex account to access the dashboard Secure Login {/* Social Login Buttons */} handleSocialLogin("github")} > Continue with GitHub handleSocialLogin("google")} > Continue with Google Or continue with email {/* Email/Password Form */} Email Address setEmail(e.target.value)} placeholder="Enter your email" className="pl-10 bg-background/50 border-border/50 focus:border-aethex-400" required /> Password setPassword(e.target.value)} placeholder="Enter your password" className="pl-10 bg-background/50 border-border/50 focus:border-aethex-400" required /> Remember me Forgot password? Sign In to Dashboard Don't have an account?{" "} navigate("/onboarding")} className="text-aethex-400 hover:underline font-medium" > Join AeThex {/* Security Notice */} 🔒 Your data is protected with enterprise-grade security ); }
Don't have an account?{" "} navigate("/onboarding")} className="text-aethex-400 hover:underline font-medium" > Join AeThex
🔒 Your data is protected with enterprise-grade security