The css class static-login is added to the body tag of the login-required page. To hide the login button in the header do something like this:
.static-login .d-header .login-button {
display: none;
}
To hide the login button that is in the main content area do something like this:
.static-login #main-outlet .login-button {
display: none;
}