@font-face {
  font-family: "Ruda";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/ruda-v21-latin-regular.woff2") format("woff2"),
    url("../fonts/ruda-v21-latin-regular.woff") format("woff"),
    url("../fonts/ruda-v21-latin-regular.ttf") format("truetype");
}

body {
  font-family: Ruda !important;
}

.login-pf body {
  background: white none;
}

#kc-header-wrapper {
  background: url(../img/wp-digital-portal.svg) center bottom no-repeat,
    url(../img/wp_digital_portal_icon.png) center top no-repeat;
  background-size: contain, 100px;
  width: 470px;
  height: 150px;
  margin: auto;
  font-size: 0px;
}

.card-pf {
  border-color: #e87d0d;
  border-radius: 10px;
}

#kc-login {
  --pf-c-button--m-primary--Color: white;
  --pf-c-button--m-primary--BackgroundColor: #e87d0d;
  padding-top: 12px;
  font-family: Ruda !important;
}

a#kc-signup,
a#kc-signup:link,
a#kc-signup:visited {
  box-sizing: border-box;
  margin-top: 12px;
  padding-top: 12px;
  font-family: Ruda !important;
  color: #e87d0d !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 1px solid #e87d0d !important;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

/* Hover/focus: subtle wash for "this is a button" feedback, text stays orange */
a#kc-signup:hover,
a#kc-signup:focus {
  color: #e87d0d !important;
  background-color: rgba(232, 125, 13, 0.1) !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: #e87d0d !important;
  outline: none !important;
}

/* Active (click): commit to the login button's orange; white text for readability */
a#kc-signup:active {
  color: white !important;
  background-color: #e87d0d !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: #e87d0d !important;
  outline: none !important;
}

/* Keyboard-only focus keeps a visible ring for accessibility */
a#kc-signup:focus-visible {
  outline: 2px solid #e87d0d !important;
  outline-offset: 2px;
}

.pf-c-button:hover,
.pf-m-primary:hover {
  background-color: #ba640a !important;
}

.pf-c-form-control:hover {
  border-bottom-color: #ba640a !important;
  border-bottom-width: 2px !important;
}

.external-links {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.external-links > span {
  text-align: center;
}

.kemper-link {
  color: #e87d0d;
}

.kemper-link:hover {
  color: #b9640a !important;
}

.pipe {
  margin: 0 5px 0 5px;
}

.decline-button,
.pf-c-button {
  background-color: #e87d0d !important;
}

.decline-button:hover {
  background-color: #bbc5cf !important;
}

.remember-me:checked {
  accent-color: #e87d0d;
}

#kc-terms-text {
  overflow-x: auto;
  max-height: 400px;
}

/* For desktop browsers */
/* For tablets in landscape orientation */
@media only screen and (min-width: 600px) and (orientation: landscape) {
  body {
    background-image: url("https://wp-digital.de/wp-content/uploads/2024/04/Login_Tablet_Horizontal.png") !important;
    background-size: cover !important;
    background-position: center !important;
  }
}

/* For tablets in portrait orientation */
@media only screen and (min-width: 600px) and (orientation: portrait) {
  body {
    background-image: url("https://wp-digital.de/wp-content/uploads/2024/04/Login_Tablet_Vertical.png") !important;
    background-size: cover !important;
    background-position: center !important;
  }
}

/* For mobile phones */
@media only screen and (max-width: 599px) {
  #kc-header-wrapper {
    width: unset;
  }

  .pipe {
    margin: 0 3px 0 3px;
  }

  body {
    background-image: none !important; /* No background image for mobile phones */
  }
}
