"use client" import Link from "next/link" import { useState } from "react" import { useRouter } from "next/navigation" import { Button } from "@/components/ui/button" import { Card, CardContent } from "@/components/ui/card" import { Input } from "@/components/ui/input" import { Label } from "@/components/ui/label" import { Mail, Lock, LogIn, AlertCircle } from "lucide-react" import { useAuth } from "@/lib/auth-context" export default function LoginPage() { const router = useRouter() const { login, isLoading } = useAuth() const [email, setEmail] = useState("") const [password, setPassword] = useState("") const [error, setError] = useState("") const handleSubmit = async (e: React.FormEvent) => { e.preventDefault() setError("") if (!email || !password) { setError("Email et mot de passe requis") return } try { await login(email, password) router.push("/dashboard") } catch (err) { setError("Email ou mot de passe incorrect") } } return (
Accédez à votre tableau de bord
Erreur de connexion
{error}
Pas encore de compte?{" "} S'inscrire
Votez en toute confiance sur notre plateforme sécurisée par cryptographie post-quantique
Cryptographie Post-Quantique
Sécurité certifiée NIST
Résultats Transparents
Traçabilité complète
Accès Instantané
De n'importe quel appareil