import React from 'react'; import { Sparkles, AlertCircle, Shield, Eye, EyeOff } from 'lucide-react'; interface AdminLoginFormProps { email: string; password: string; showPassword: boolean; loading: boolean; error: string | null; loggedInUser: any; isAdmin: boolean; onEmailChange: (v: string) => void; onPasswordChange: (v: string) => void; onToggleShowPassword: () => void; onSubmit: (e: React.FormEvent) => void; } export const AdminLoginForm: React.FC = ({ email, password, showPassword, loading, error, loggedInUser, isAdmin, onEmailChange, onPasswordChange, onToggleShowPassword, onSubmit, }) => { return (

ACUPEDIA BACKOFFICE

Clinical Platform Administrative Suite

{error && (
{error}
)} {loggedInUser && !isAdmin && (
Account {loggedInUser.email} lacks administrative privileges.
)}
onEmailChange(e.target.value)} placeholder="admin@acupedia.in" className="w-full px-4 py-3 rounded-xl bg-slate-800/80 border border-slate-700 text-white text-xs font-semibold focus:outline-none focus:border-indigo-500" />
onPasswordChange(e.target.value)} placeholder="••••••••" className="w-full px-4 py-3 rounded-xl bg-slate-800/80 border border-slate-700 text-white text-xs font-semibold focus:outline-none focus:border-indigo-500" />
); };