<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Connexion - emelec Sarl</title>
    <link rel="preconnect" href="https://fonts.bunny.net">
    <link href="https://fonts.bunny.net/css?family=plus-jakarta-sans:400,500,600,700" rel="stylesheet" />
    <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/app.js']); ?>
</head>
<body class="min-h-screen bg-slate-100 flex items-center justify-center p-4 font-sans">
    <div class="w-full max-w-md">
        <div class="bg-white rounded-2xl shadow-xl p-8">
            <div class="text-center mb-8">
                <a href="<?php echo e(route('accueil')); ?>" class="inline-flex items-center gap-2 text-slate-800">
                    <div class="w-10 h-10 rounded-lg bg-amber-500 flex items-center justify-center text-white font-bold">
                        ES
                    </div>
                    <span class="text-xl font-bold">emelec Sarl</span>
                </a>
            </div>
            <h1 class="text-2xl font-bold text-slate-800 mb-6 text-center">Connexion administrateur</h1>

            <?php if($errors->any()): ?>
            <div class="mb-6 p-4 rounded-lg bg-red-50 border border-red-200 text-red-700 text-sm">
                <?php echo e($errors->first()); ?>

            </div>
            <?php endif; ?>

            <form method="POST" action="<?php echo e(route('login')); ?>" class="space-y-6">
                <?php echo csrf_field(); ?>
                <div>
                    <label for="email" class="block text-sm font-medium text-slate-700 mb-2">Email</label>
                    <input type="email" name="email" id="email" value="<?php echo e(old('email')); ?>" required autofocus class="w-full px-4 py-3 rounded-lg border border-slate-200 focus:ring-2 focus:ring-amber-500 focus:border-amber-500">
                </div>
                <div>
                    <label for="password" class="block text-sm font-medium text-slate-700 mb-2">Mot de passe</label>
                    <input type="password" name="password" id="password" required class="w-full px-4 py-3 rounded-lg border border-slate-200 focus:ring-2 focus:ring-amber-500 focus:border-amber-500">
                </div>
                <div class="flex items-center">
                    <input type="checkbox" name="remember" id="remember" class="rounded border-slate-300 text-amber-500 focus:ring-amber-500">
                    <label for="remember" class="ml-2 text-sm text-slate-600">Se souvenir de moi</label>
                </div>
                <button type="submit" class="w-full bg-amber-500 hover:bg-amber-600 text-white py-3 rounded-lg font-semibold transition">
                    Se connecter
                </button>
            </form>
        </div>
    </div>
</body>
</html>
<?php /**PATH C:\Softsys\emelec_2\resources\views/auth/login.blade.php ENDPATH**/ ?>