This version is matched to your current backend files. Face login sends a JSON descriptor to authenticate_face.php, and NFC login sends card number plus PIN to authenticate_eid.php.
Traditional login keeps the role hidden. Face ID and NFC + PIN use your backend JSON format.
Face recognition camera will appear here
Auto-capture is enabled when a single face is steady.Scan the card first, then enter the PIN to continue.