The login page looks correct. Let me check if the database scripts have been run and if the Supabase auth users were created properly. Let me also add some debugging to see what's happening during login.
I've added debugging to the login page and quick login buttons for easier testing. The most likely issue is that the database scripts haven't been run yet, which means the test users don't exist in Supabase Auth. Make sure you've run all the database scripts in order, especially scripts/004_create_auth_users.sql which creates the test accounts. The debug logs will help identify if it's an authentication issue or a database setup problem.
The issue is that directly inserting into Supabase's auth tables doesn't work reliably. I need to create a setup endpoint that uses the Supabase Admin API to create the test users properly. Let me create a setup endpoint that will create the test users programmatically.
I've created a proper setup system that uses the Supabase Admin API to create test users correctly. The old SQL script approach doesn't work reliably with Supabase Auth. Now you need to visit /setup in your browser and click "Create Test Users" to properly create the authentication accounts. This will create the users through Supabase's Auth API and then link them to your tenant system, ensuring they can login successfully.