/*
  FTL template styles for the login flow, with overruled classnames via theme.properties.
  https://github.com/keycloak/keycloak/tree/main/themes/src/main/resources/theme/base/login
*/

.ma-header {
  display: none;
}

.ma-login__layout {
  font-size: 14px;
  font-family:
    IBM Plex Sans,
    sans-serif;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-image: url(../img/background.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/*#kc-form-wrapper {*/
.ma-login__form {
  color: var(--ma-color-primary-90);
  display: flex;
  max-width: 500px;
  flex-direction: column;
  justify-content: center;
  padding: 48px 60px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}

.ma-login-form__header {
  display: flex;
  flex-direction: column;
  align-items: center;

  font-family:
    Objectivity Bold,
    sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: #034259;
}

.ma-login-form__header h1 {
  margin: 0 0 28px;
  font-size: 20px;
  color: var(--ma-color-primary-60);
}

.ma-login-form__header::before {
  content: "";
  display: block;
  background-image: url(../svg/nedap-logo.svg);
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
  margin-bottom: 80px;
  width: 108px;
  height: 62px;
}

.ma-login__password-hints {
  margin-bottom: 28px;
}

.ma-login__password-hints li::before {
  content: "";
  -webkit-mask: url("../svg/circle.svg") no-repeat 50% 50%;
  mask: url("../svg/circle.svg") no-repeat 50% 50%;
  -webkit-mask-size: 10px;
  mask-size: 10px;
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  background-color: var(--ma-color-primary-60);

  margin-right: 6px;
}

.ma-login__password-hints li.--pass {
  color: var(--ma-color-success);
}

.ma-login__password-hints li.--fail {
  color: var(--ma-color-danger);
}

.ma-login__password-hints li.--pass::before {
  -webkit-mask: url("../svg/check.svg") no-repeat 50% 50%;
  mask: url("../svg/check.svg") no-repeat 50% 50%;
  -webkit-mask-size: 12px;
  mask-size: 12px;
  background-color: var(--ma-color-success);
}

.ma-login__password-hints li.--fail::before {
  -webkit-mask: url("../svg/xmark.svg") no-repeat 50% 50%;
  mask: url("../svg/xmark.svg") no-repeat 50% 50%;
  -webkit-mask-size: 12px;
  mask-size: 12px;
  background-color: var(--ma-color-danger);
}

#passwords-do-not-match {
  visibility: hidden;
}
.--nomatch #passwords-do-not-match {
  visibility: visible;
}

.ma-form-options {
  text-align: center;
  margin: 16px 0 32px;
}

.ma-form-options a {
  color: var(--ma-color-grey-50);
}

.ma-toggle-password {
  position: absolute;
  display: inline-block;
  width: 20px;
  height: 20px;
  right: 7px;
  top: 13px;
  -webkit-mask: url("../svg/eye.svg") no-repeat 50% 50%;
  mask: url("../svg/eye.svg") no-repeat 50% 50%;
  -webkit-mask-size: 20px;
  mask-size: 20px;
  background-color: var(--ma-color-grey-50);
}
input:focus + .ma-toggle-password {
  background-color: var(--ma-color-primary-50);
}

input[aria-invalid="true"] + .ma-toggle-password {
  background-color: var(--ma-color-danger);
}

.ma-toggle-password.--active {
  -webkit-mask: url("../svg/eye-slash.svg") no-repeat 50% 50%;
  mask: url("../svg/eye-slash.svg") no-repeat 50% 50%;
}

.ma-password-strength {
  position: relative;
  display: block;
  margin: 4px 0;
  padding: 0;
}
.ma-password-strength__label,
.ma-password-strength__indicator {
  transition: all 0.3s ease-in-out;
  position: absolute;
  left: 0;
  top: 0;
}

.ma-password-strength__label {
  color: var(--ma-color-grey-50);
  font-size: 11px;
  top: 4px;
  opacity: 0;
}
.form-group:focus-within .ma-password-strength__label {
  opacity: 1;
}

.ma-password-strength__indicator {
  list-style: none;
  display: inline-flex;
  margin: 0;
  padding: 0;
  height: 6px;
  width: 0;
  border-radius: 3px;
}

.strength-1 .ma-password-strength__indicator {
  width: 20%;
  background: var(--ma-color-strength-1);
}
.strength-2 .ma-password-strength__indicator {
  width: 40%;
  background: var(--ma-color-strength-2);
}
.strength-3 .ma-password-strength__indicator {
  width: 60%;
  background: var(--ma-color-strength-3);
}
.strength-4 .ma-password-strength__indicator {
  width: 80%;
  background: var(--ma-color-strength-4);
}
.strength-5 .ma-password-strength__indicator {
  width: 100%;
  background: var(--ma-color-strength-5);
}
