diff --git a/login/resources/css/pirati.css b/login/resources/css/pirati.css
index 0ae3931f8442e195f2f5daf0726f6d6690e2b5ab..c29ddf26525152068295925120d23d77f63e6749 100644
--- a/login/resources/css/pirati.css
+++ b/login/resources/css/pirati.css
@@ -2,6 +2,12 @@
     background: #000;
     height: 100%;
 }
+
+.login-pf .kc-content {
+    max-width: 100%;
+    overflow: hidden;
+}
+
 div.kc-logo-text {
     background-image: url(../img/piratska-identita.svg);
     background-repeat: no-repeat;
@@ -9,4 +15,5 @@ div.kc-logo-text {
     height: 66px;
     width: 471px;
     margin: 0 auto;
+    max-width: 100%;
 }