import React, { useState } from 'react'; import { useForm, Head, Link } from '@inertiajs/react'; import { ArrowLeft, Eye, EyeOff, Loader2, Mail, Lock, ChevronLeft } from 'lucide-react'; export default function WorkerLogin() { const { data, setData, post, processing, errors } = useForm({ email: '', password: '', remember: false, source: 'mobile', }); const [showPassword, setShowPassword] = useState(false); const handleSubmit = (e) => { e.preventDefault(); // post('/worker/login'); }; return (
{/* Minimal Header */}
{/* Title Section */}

Welcome back

Please enter your details to sign in

{/* Login Form */}
setData('email', e.target.value)} placeholder="Enter your email" className="w-full pl-14 pr-6 py-5 bg-slate-50 border border-slate-100 rounded-[24px] text-sm font-medium focus:bg-white focus:border-[#185FA5] focus:ring-4 focus:ring-blue-500/10 transition-all outline-none" required />
{errors.email &&

{errors.email}

}
Forgot?
setData('password', e.target.value)} placeholder="••••••••" className="w-full pl-14 pr-14 py-5 bg-slate-50 border border-slate-100 rounded-[24px] text-sm font-medium focus:bg-white focus:border-[#185FA5] focus:ring-4 focus:ring-blue-500/10 transition-all outline-none" required />
{/* Footer */}

Don't have an account?
Sign up here

); }