diff --git a/authentik/core/templates/login/base_full.html b/authentik/core/templates/login/base_full.html
index 22d6aa805..450a969c4 100644
--- a/authentik/core/templates/login/base_full.html
+++ b/authentik/core/templates/login/base_full.html
@@ -4,16 +4,6 @@
{% load i18n %}
{% load authentik_utils %}
-{% block head %}
-{{ block.super }}
-
-{% endblock %}
-
{% block body %}
-
+
{% block main_container %}
@@ -70,6 +43,23 @@
{% endblock %}
+
{% endblock %}
diff --git a/web/src/authentik.css b/web/src/authentik.css
index 005e20cd0..298b2d03a 100644
--- a/web/src/authentik.css
+++ b/web/src/authentik.css
@@ -15,10 +15,35 @@ html > input {
z-index: 0;
}
+/*****************************
+* Login adjustments
+*****************************/
/* Ensure card is displayed on small screens */
.pf-c-login__main {
display: block;
}
+.ak-login-container {
+ height: calc(100vh - var(--pf-global--spacer--lg) - var(--pf-global--spacer--lg));
+ width: 35rem;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-evenly;
+}
+.pf-c-login__header {
+ flex-grow: 1;
+}
+.pf-c-login__main {
+ flex-shrink: 1;
+}
+.pf-c-login__footer {
+ flex-grow: 1;
+}
+.pf-c-login__footer ul.pf-c-list.pf-m-inline {
+ justify-content: center;
+}
+/*****************************
+* End Login adjustments
+*****************************/
.pf-c-content h1 {
display: flex;