diff --git a/themes/src/main/resources/theme/keycloak/login/resources/css/login.css b/themes/src/main/resources/theme/keycloak/login/resources/css/login.css
index 6ca81ad..e6dda97 100644
--- a/themes/src/main/resources/theme/keycloak/login/resources/css/login.css
+++ b/themes/src/main/resources/theme/keycloak/login/resources/css/login.css
@@ -253,7 +253,6 @@ ol#kc-totp-settings li:first-of-type {
     #kc-container-wrapper {
         position: absolute;
         width: 100%;
-        margin-top: 50px;
     }
 
     #kc-logo-wrapper {
@@ -330,6 +329,7 @@ ol#kc-totp-settings li:first-of-type {
 
 @media (max-height: 645px) {
     #kc-container-wrapper {
+        padding-top: 50px;
         top: 20%;
     }
 }