Hi,
Looking for this problem I have found a solution that in my case has fixed that issue.
https://wordpress.org/support/topic/login-slug-redirects-to-404-page-hide-backend-enabled/#post-9366448
I cleared cache and saved the permalink structure again, which has made it work the hide login/admin functionality.
Regards.