This login page is wired to the Worker API and D1 sessions. New users can register here, then return to the marketplace with a persistent session cookie.
Login, registration, item listing, claim capture, and a simple authenticated landing page all share the same backend and route structure.
Use the same page to log in or register a new account.
After login, the session is stored in an HttpOnly cookie and the Worker sends you back to the authenticated app.