From 31e8482a5ccc11d245e860c1c9a5089372183f08 Mon Sep 17 00:00:00 2001 From: Kriss Date: Fri, 24 Jul 2026 17:12:10 +0200 Subject: [PATCH] first revision --- assets/login/resources/css/styles.css | 39 +++++++++++++++++++++++ assets/login/resources/img/background.svg | 16 ++++++++++ assets/login/theme.properties | 2 ++ 3 files changed, 57 insertions(+) create mode 100644 assets/login/resources/css/styles.css create mode 100644 assets/login/resources/img/background.svg create mode 100644 assets/login/theme.properties diff --git a/assets/login/resources/css/styles.css b/assets/login/resources/css/styles.css new file mode 100644 index 0000000..c9431e8 --- /dev/null +++ b/assets/login/resources/css/styles.css @@ -0,0 +1,39 @@ +body { + background: linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.45)), + url("../img/background.svg") center center / cover no-repeat fixed; + font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; +} + +/* Keycloak's built-in theme markup/classes vary by version, so several + selectors are listed as best-effort hooks for the login card - inspect + the rendered page and adjust whichever one actually matches. */ +.login-pf-page .card-pf, +#kc-form-wrapper, +.pf-c-login__main-body, +.pf-v5-c-login__main-body { + background: rgba(255, 255, 255, 0.92); + backdrop-filter: blur(12px); + border-radius: 16px; + border: none; + box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); +} + +#kc-header-wrapper, +.pf-c-login__header, +.pf-v5-c-login__header { + color: #fff; + text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); +} + +.btn-primary, +.pf-c-button.pf-m-primary, +.pf-v5-c-button.pf-m-primary { + border-radius: 8px; + transition: background-color 0.2s ease; +} + +input.form-control, +.pf-c-form-control, +.pf-v5-c-form-control { + border-radius: 8px; +} diff --git a/assets/login/resources/img/background.svg b/assets/login/resources/img/background.svg new file mode 100644 index 0000000..6e758fe --- /dev/null +++ b/assets/login/resources/img/background.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/assets/login/theme.properties b/assets/login/theme.properties new file mode 100644 index 0000000..0a8633f --- /dev/null +++ b/assets/login/theme.properties @@ -0,0 +1,2 @@ +parent=keycloak.v2 +styles=css/styles.css