.page-authentication #wrapper,
body#authentication #wrapper {
  background-color: var(--lmab-primary);
  padding-top: var(--lmab-safe-space-desktop);
  min-height: 100svh;
}

.page-authentication .container {
  padding: 0 var(--lmab-padding-desktop) !important;
}

.page-authentication #content-wrapper,
body#authentication #content-wrapper {
  max-width: none;
  margin-top: 0;
}

.page-authentication #content,
body#authentication #content {
  background: transparent;
}

.page-authentication .page-header,
body#authentication .page-header {
  margin-bottom: 5rem;
}

.page-authentication .page-header .h4,
body#authentication .page-header .h4 {
  max-width: 29rem;
  margin: 0;
  color: var(--lmab-secondary);
  font-family: "HammerBold", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 2.75rem;
  text-transform: uppercase;
}

.page-authentication .login,
body#authentication .login {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 2.25rem;
  row-gap: 1.5rem;
  width: 100%;
  max-width: 70rem;
  padding-left: var(--lmab-safe-left);
}

.page-authentication .login__form-wrapper,
body#authentication .login__form-wrapper,
.page-authentication #login-form,
body#authentication #login-form {
  display: contents;
}

.page-authentication .login .help-block,
body#authentication .login .help-block {
  flex: 0 0 100%;
  order: 0;
  margin: -1.5rem 0 1.35rem;
}

.page-authentication .login .alert,
body#authentication .login .alert {
  display: inline-block;
  padding: 0 0 0.45rem;
  color: var(--lmab-error);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: "HammerBold", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.page-authentication .login .alert p,
.page-authentication .login .alert ol,
.page-authentication .login .alert ul,
body#authentication .login .alert p,
body#authentication .login .alert ol,
body#authentication .login .alert ul {
  margin: 0;
  padding: 0;
}

.page-authentication .login .alert li,
body#authentication .login .alert li {
  list-style: none;
}

.page-authentication #login-form > .mb-3,
body#authentication #login-form > .mb-3 {
  flex: 0 0 100%;
  margin-bottom: 0 !important;
}

.page-authentication #login-form .form-label,
body#authentication #login-form .form-label {
  display: none;
}

.page-authentication #login-form .form-control,
body#authentication #login-form .form-control {
  height: 1.6rem;
  min-height: 0;
  padding: 0;
  color: var(--lmab-secondary);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--lmab-secondary);
  border-radius: 0;
  box-shadow: none;
  font-family: "HammerBold", sans-serif;
  font-size: 1rem;
}

.page-authentication #login-form .form-control::placeholder,
body#authentication #login-form .form-control::placeholder {
  color: rgba(43, 91, 169, 0.36);
  font-family: "HammerBold", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  opacity: 1;
}

.page-authentication #login-form .password-field,
body#authentication #login-form .password-field {
  align-items: center;
  flex-wrap: nowrap;
  border-bottom: 2px solid var(--lmab-secondary);
}

.page-authentication #login-form .password-field .form-control,
body#authentication #login-form .password-field .form-control {
  flex: 1 1 auto;
  min-width: 0;
  border-bottom: 0;
}

.page-authentication #login-form .password-field .btn,
body#authentication #login-form .password-field .btn {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: auto;
  padding: 0;
  color: var(--lmab-secondary);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.page-authentication #login-form .password-field .material-icons,
body#authentication #login-form .password-field .material-icons {
  font-size: 1.45rem;
  line-height: 1;
}

.page-authentication #login-form > input[name="submitLogin"] + div,
body#authentication #login-form > input[name="submitLogin"] + div {
  display: block !important;
  flex: 0 0 16.25rem;
  order: 2;
  margin: 1.8rem 0 0 !important;
}

.page-authentication #submit-login,
body#authentication #submit-login {
  width: 100%;
  padding: 0.38rem 1rem 0.34rem;
  color: var(--lmab-primary);
  background: var(--lmab-secondary);
  border: 1px solid var(--lmab-secondary);
  border-radius: 0;
  font-family: "HammerBold", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
  transition:
    background 0.3s,
    color 0.3s;
}

.page-authentication #submit-login:hover,
body#authentication #submit-login:hover {
  color: var(--lmab-secondary);
  background: var(--lmab-primary);
}

.page-authentication .login__forgot-password,
body#authentication .login__forgot-password {
  flex: 0 0 auto;
  order: 3;
  margin-top: 1.8rem;
  margin-bottom: 0 !important;
  text-align: left !important;
}

.page-authentication .login__register-prompt,
body#authentication .login__register-prompt {
  flex: 0 0 auto;
  order: 4;
  margin-top: 1.8rem;
}

.page-authentication .login__forgot-password a,
.page-authentication .login__register-prompt a,
body#authentication .login__forgot-password a,
body#authentication .login__register-prompt a {
  color: var(--lmab-secondary);
  font-family: "BradfordLLRegular", serif;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: underline;
}

.page-authentication .login__forgot-password a:hover,
.page-authentication .login__register-prompt a:hover,
body#authentication .login__forgot-password a:hover,
body#authentication .login__register-prompt a:hover {
  color: var(--lmab-hover);
  text-decoration: none;
}

@media (max-width: 767.98px) {
  body#authentication,
  .page-authentication,
  body#authentication #wrapper,
  .page-authentication #wrapper {
    overflow-x: hidden;
  }

  body .container {
    padding: var(--lmab-padding-mobile) !important;
  }

  .page-authentication .container {
    padding: 0 var(--lmab-padding-mobile) !important;
    max-width: 100%;
  }

  .page-authentication .page-header,
  body#authentication .page-header {
    margin-bottom: 3rem;
  }

  .page-authentication .page-header .h4,
  body#authentication .page-header .h4 {
    font-size: 1.5rem;
    line-height: 1.5rem;
  }

  .page-authentication .login,
  body#authentication .login {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    row-gap: 1rem;
  }

  .page-authentication .login .help-block,
  body#authentication .login .help-block {
    width: 100%;
    margin: 0 0 0.5rem;
  }

  .page-authentication .login .alert,
  body#authentication .login .alert {
    width: 100%;
    font-size: 0.95rem;
  }

  .page-authentication #login-form > .mb-3,
  body#authentication #login-form > .mb-3,
  .page-authentication #login-form .password-field,
  body#authentication #login-form .password-field {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-authentication #login-form > .mb-3 > .form-control,
  body#authentication #login-form > .mb-3 > .form-control {
    width: 100%;
    font-size: 1rem;
    line-height: 1.18rem;
  }

  .page-authentication #login-form .form-control::placeholder,
  body#authentication #login-form .form-control::placeholder {
    font-size: 1rem;
    line-height: 1.18rem;
  }

  .page-authentication #login-form > input[name="submitLogin"] + div,
  .page-authentication .login__forgot-password,
  .page-authentication .login__register-prompt,
  body#authentication #login-form > input[name="submitLogin"] + div,
  body#authentication .login__forgot-password,
  body#authentication .login__register-prompt {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 0.5rem;
  }

  .page-authentication #submit-login,
  body#authentication #submit-login,
  .page-authentication .login__forgot-password a,
  .page-authentication .login__register-prompt a,
  body#authentication .login__forgot-password a,
  body#authentication .login__register-prompt a {
    font-size: 1rem;
    line-height: 1rem;
  }
}
