To diagnose and fix the mobile-only login issue, follow these steps:
1. Check mobile browser console logs: Inspect the browser's developer console for errors or warnings related to the login request.
2. Verify API requests: Use tools like Postman or cURL to test the login API endpoint directly, simulating a mobile request.
3. Inspect network requests: Use browser DevTools to inspect the network requests made during the login process on mobile, checking for any differences from laptop requests.
4. Validate CORS configuration: Ensure your Azure backend has proper CORS (Cross-Origin Resource Sharing) settings to allow requests from Vercel-hosted frontend on mobile browsers.