diff --git a/forms/common-themes/src/main/resources/theme/login/patternfly/resources/css/login.css b/forms/common-themes/src/main/resources/theme/login/patternfly/resources/css/login.css
index e4f64c8..2872d7f 100644
--- a/forms/common-themes/src/main/resources/theme/login/patternfly/resources/css/login.css
+++ b/forms/common-themes/src/main/resources/theme/login/patternfly/resources/css/login.css
@@ -225,11 +225,6 @@ ol#kc-totp-settings li:first-of-type {
float: none;
}
- #kc-container-wrapper {
- position: inherit;
- float: none;
- }
-
#kc-form {
padding-left: 15px;
padding-right: 15px;
@@ -253,4 +248,11 @@ ol#kc-totp-settings li:first-of-type {
padding-top: 15px;
padding-bottom: 15px;
}
-}
\ No newline at end of file
+}
+
+@media (max-height: 500px) {
+ #kc-container-wrapper {
+ position: inherit;
+ float: none;
+ }
+}