1// useLoginForm — all credential-auth logic, no markup: hold the form fields, run login/register,2// and DRIVE THE STATE MACHINE. register()/login()/verifyEmail() resolve to { state, member?,3// stateToken? }; SUCCESS is only one of the branches. Handling every branch (email verification,4// owner approval) and mapping MemberAuthError to a message is the bug-prone part — keep it verbatim;5// the LoginForm component only renders what this returns. Social/SSO does NOT go through here (it's6// a full-page redirect — see SocialButtons + the /callback page).7import { useState } from "react";8import { login, register, verifyEmail, MemberAuthError } from "@/rest/wix-members-auth";9import { useMember } from "@/context/MemberContext";