diff --git a/modules/core/templates/login.twig b/modules/core/templates/login.twig
index 9e4bf6bc91742984628081e2c3f5b6ed28be321c..ac56c88ce4db11f1d804ab84c74be634441d6354 100644
--- a/modules/core/templates/login.twig
+++ b/modules/core/templates/login.twig
@@ -9,10 +9,12 @@
     <p>Please check your SimpleSAML configuration.<br>
         Follow the link and log in with administrator credentials. <a href="{{ loginurl }}">Admin login.</a></p>
 {% else %}
-    <ul>
-        {% for id, config in sources -%}
-            <li><a href="?as={{ id|url_encode }}">{{ config.name|translateFromArray|default(id) }}</a></li>
-        {% endfor -%}
-    </ul>
+    <div class="pure-menu custom-restricted-width">
+        <ul class="pure-menu-list auth_methods">
+            {% for id, config in sources -%}
+                <li class="pure-menu-item"><a href="?as={{ id|url_encode }}" class="pure-menu-link">{{ config.name|translateFromArray|default(id) }}</a></li>
+            {% endfor -%}
+        </ul>
+    </div>
 {% endif %}
 {% endblock %}
\ No newline at end of file