:root {
  --bf-primary: #222e4f;
}


:where(a) {
  color: var(--bf-primary);
}

.login-pf body {
  background: none;
}

.pf-v5-c-button.pf-m-primary {
  background: var(--bf-primary);
}

.pf-v5-c-login {
  position: relative;
}

.pf-v5-c-login__main-header {
  border-top: 4px solid var(--bf-primary);
}

.pf-v5-c-login__header {
  position: relative;
}

#kc-header-wrapper {
  font-size: 0;
  line-height: 0;
  color: transparent !important;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  display: block;
  width: 240px;
  height: 70px;
  margin: 0 auto;
}

#kc-header-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  margin-bottom: 1rem;
  mask: url("../img/logo.svg");
  background-color: #ffffff;
  width: 250px;
  height: 53px;
}

.coverimage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;

  /* Anfang: unsichtbar, bis erstes Bild geladen ist */
  opacity: 0;
  transition: opacity 500ms ease-in-out;
}

.coverimage.is-ready {
  opacity: 1;
}

.coverimage--image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;

  opacity: 0;
  transform: scale(1.03) rotate(-0.6deg);
  transition:
    opacity 1200ms ease-in-out,
    transform 9000ms ease-in-out;
  will-change: opacity, transform;
}

.coverimage--image.is-active {
  opacity: 1;
  transform: scale(1.08) rotate(0.6deg);
}

.coverimage--overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.pf-v5-c-login {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .coverimage {
    transition: none;
  }

  .coverimage--image {
    transition: opacity 250ms linear;
    transform: none;
  }

  .coverimage--image.is-active {
    transform: none;
  }
}