Hi,
Are you using the default logon.html page and making changes in that or usinga a custom login page ?
If you are using a custom login Page by allowing anonymous user, Go to Login page add a container and place the login for widget or login widgets inside the Container, Now Add custosm css to the container for adding a Background image.