diff --git a/login/login.ftl b/login/login.ftl index e1986f7..8533d9c 100644 --- a/login/login.ftl +++ b/login/login.ftl @@ -3,64 +3,20 @@ <#if section = "header"> ${msg("loginTitle",(realm.displayName!''))} <#elseif section = "form"> -
class="${properties.kcContentWrapperClass!}"> -
class="${properties.kcFormSocialAccountContentClass!} ${properties.kcFormSocialAccountClass!}"> - <#if realm.password> -
-
- - - <#if usernameEditDisabled??> - - <#else> - - -
- -
- - -
- -
-
- <#if realm.rememberMe && !usernameEditDisabled??> -
- -
- -
-
- <#if realm.resetPasswordAllowed> - ${msg("doForgotPassword")} - -
- -
- -
- value="${auth.selectedCredential}"/> - -
-
- -
- <#if realm.password && social.providers??> -
- +

Log In

+
+
+ +
- -
+
+ + +
+ + <#elseif section = "info" > <#if realm.password && realm.registrationAllowed && !registrationDisabled??>
diff --git a/login/resources/css/custom.css b/login/resources/css/custom.css new file mode 100644 index 0000000..e06a1bb --- /dev/null +++ b/login/resources/css/custom.css @@ -0,0 +1,125 @@ +body { + font-family: "Karla", sans-serif; + background-color: #fff; + min-height: 100vh; +} + +.brand-wrapper { + padding-top: 7px; + padding-bottom: 8px; +} + +.brand-wrapper .logo { + height: 50px; +} + +.login-section-wrapper { + display: -webkit-box; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; + padding: 68px 100px; + background-color: #fff; +} + +@media (max-width: 991px) { + .login-section-wrapper { + padding-left: 50px; + padding-right: 50px; + } +} + +@media (max-width: 768px) { + .login-section-wrapper { + padding-top: 20px; + padding-bottom: 20px; + min-height: 100vh; + } +} + +.login-wrapper { + width: 500px; + max-width: 100%; + padding-top: 24px; + padding-bottom: 24px; +} + +@media (max-width: 768px) { + .login-wrapper { + width: 100%; + } +} + +.login-wrapper label { + font-size: 14px; + font-weight: bold; + color: #b0adad; +} + +.login-wrapper .form-control { + border: none; + border-bottom: 1px solid #b3ffff; + border-radius: 0; + padding: 9px 5px; + min-height: 40px; + font-size: 18px; + font-weight: normal; +} + +.login-wrapper .form-control::-webkit-input-placeholder { + color: #b0adad; +} + +.login-wrapper .form-control::-moz-placeholder { + color: #b0adad; +} + +.login-wrapper .form-control:-ms-input-placeholder { + color: #b0adad; +} + +.login-wrapper .form-control::-ms-input-placeholder { + color: #b0adad; +} + +.login-wrapper .form-control::placeholder { + color: #b0adad; +} + +.login-wrapper .login-btn { + padding: 13px 20px; + background-color: #00c2c2; + border-radius: 0; + font-size: 20px; + font-weight: bold; + color: #fff; + margin-bottom: 14px; +} + +.login-wrapper .login-btn:hover { + border: 1px solid #00c2c2; + background-color: #fff; + color: #00c2c2; +} + +.login-wrapper-footer-text { + font-size: 16px; + color: #000; + margin-bottom: 0; +} + +.login-title { + color: #008080; +} + +.login-img { + width: 100%; + height: 100vh; + -o-object-fit: cover; + object-fit: cover; + -o-object-position: left; + object-position: left; +} + +/*# sourceMappingURL=login.css.map */ \ No newline at end of file diff --git a/login/resources/images/background.jpg b/login/resources/images/background.jpg new file mode 100644 index 0000000..8b140fa Binary files /dev/null and b/login/resources/images/background.jpg differ diff --git a/login/resources/images/background_md.jpg b/login/resources/images/background_md.jpg new file mode 100644 index 0000000..87d881f Binary files /dev/null and b/login/resources/images/background_md.jpg differ diff --git a/login/resources/images/logo_left.png b/login/resources/images/logo_left.png new file mode 100644 index 0000000..a545bfd Binary files /dev/null and b/login/resources/images/logo_left.png differ diff --git a/login/template.ftl b/login/template.ftl index 0fe831e..f057597 100644 --- a/login/template.ftl +++ b/login/template.ftl @@ -9,119 +9,31 @@ + ${msg("loginTitle",(realm.displayName!''))} - - -
-
-
- <#if realm.internationalizationEnabled && locale.supported?size gt 1> -
-
-
- ${locale.current} -
    - <#list locale.supported as l> -
  • ${l.label}
  • - -
+ +
+
+
+ +
+
- - <#if !(auth?has_content && auth.showUsername() && !auth.showResetCredentials())> - <#if displayRequiredFields> -
-
- * ${msg("requiredFields")} -
-
-

<#nested "header">

-
-
- <#else> -

<#nested "header">!

- - <#else> - <#if displayRequiredFields> -
-
- * ${msg("requiredFields")} -
-
- <#nested "show-username"> -
-
- - - - -
-
-
-
- <#else> - <#nested "show-username"> -
-
- - - - -
-
- - -
-
-
- - <#-- App-initiated actions should not see warning messages about the need to complete the action --> - <#-- during login. --> - <#if displayMessage && message?has_content && (message.type != 'warning' || !isAppInitiatedAction??)> -
- <#if message.type = 'success'> - <#if message.type = 'warning'> - <#if message.type = 'error'> - <#if message.type = 'info'> - -
- - - <#nested "form"> - - <#if auth?has_content && auth.showTryAnotherWayLink() && showAnotherWayIfPresent> -
class="${properties.kcContentWrapperClass!}"> -
class="${properties.kcFormSocialAccountContentClass!} ${properties.kcFormSocialAccountClass!}"> - -
-
- - - <#if displayInfo> -
-
- <#nested "info"> -
-
-
-
-
-
+ +