Note that if the app does not have a static URL for the login page then you can also try using a URL that has a link to the login page.
If ZAP can access your app but still cannot authenticate then: