When the page does exist the address bar of the browser might redirect you to this page.
A possible option would be to add a redirect in the login.html page to a page url for the custom login page.
The redirect can be accomplished by adding something like below in your login.html page:
<meta http-equiv=”refresh” content=”0;URL=https://yourappurl/p/loginpage” />