/* _lw_ CSS fuer SelfService */

@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('https://portal.dbwvonline.de/extern/fonts/roboto-v30-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('https://portal.dbwvonline.de/extern/fonts/roboto-v30-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('https://portal.dbwvonline.de/extern/fonts/roboto-v30-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('https://portal.dbwvonline.de/extern/fonts/roboto-v30-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  

.login-pf body {
    background: #f7f7f7;
    font-family: 'Roboto';
    min-width: 300px;
    /* __fo__ OTP Text Anzeige */
    color: #000;
}

#kc-header {
    background: url(https://portal.dbwvonline.de/extern/images/banner_blau.jpg) no-repeat left top;
}

#kc-header-wrapper {
    color: #222222;
    text-transform: uppercase;
    font-weight: 500;
    padding: 10rem 0 2.5rem;
}

.login-pf-page .card-pf {
    box-shadow: 1px 1px 3px 0px rgba(194,194,194,1);
    background: #fff;
    padding: 2.4rem 1rem 1rem !important;
    min-height: 0;
}

/* __fo__ OTP Text Anzeige */
.login-pf-page .card-pf p {                                                                                                    
    color: #000;                                                                                                               
}
/* /__fo__ */

.pf-c-button.pf-m-primary {
    background: #1c557e;
    color: #fff;
    transition: all 0.2s ease;
}

.pf-c-button.pf-m-primary:hover {
    background: #2b70a1;
}

#kc-locale-dropdown a {
    color: #222222;
}

#kc-locale ul {
    background-color: #fff;
    box-shadow: 1px 1px 3px 0px rgba(194,194,194,1);
    overflow: hidden;
    min-width: 80px;
}

#kc-locale-dropdown ul a:hover {
    background: #1c557e;
}

#kc-locale-dropdown ul a {
    border-radius: 0;
}

#kc-locale-dropdown ul li:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.login-pf-page .login-pf-header {
    background: url("https://portal.dbwvonline.de/extern/images/dbwv-logo.png") no-repeat center;
    background-size: 100px;
    padding: 2.5rem 0;
}

.pf-c-form-control {
border:1px solid #ced4da !important;
background: #fff;
color: #222222;
font-family: inherit;
}

.pf-c-form-control:focus {
    background: #fff;
  border-color: #1c557e !important;
  box-shadow: inset 0 0 0 .25rem #ccd4de;
  color: #212529;
  outline: 0;
}

/* Keycloak only: dark text on the white login card */
#kc-content,
.login-pf-page {
  --font-color-contrast-high: #1d1d1b;
  --font-color-contrast-middle: #4a4a4a;
  --font-color-contrast-low: #6b6b6b;
}

/* Fallbacks for elements that don't use the variables */
#kc-content label,
#kc-content .control-label,
#kc-content .pf-c-form__label-text {
  color: var(--font-color-contrast-high);
}

.alert-warning .kc-feedback-text,
.pf-c-alert.pf-m-warning .pf-c-alert__title {
  color: #795600;
}

/* Login: password visibility toggle (eye button) */
#kc-content button[data-password-toggle],
#kc-content .pf-c-button.pf-m-control,
#kc-content .pf-v5-c-button.pf-m-control {
  background: #ffffff;
  color: #6b6b6b;
  border: 1px solid #d2d2d2;
  border-left: none;
  box-shadow: none;
}

#kc-content button[data-password-toggle]:hover,
#kc-content button[data-password-toggle]:focus {
  background: #f2f2f2;
  color: #1d1d1b;
}

/* Labels on all Keycloak login forms */
#kc-form-login label,
#kc-otp-login-form label,
#kc-totp-settings-form label {
  color: #1d1d1b;
}


input + .pf-c-form__label {
    color: #222222;
}

input:not(:placeholder-shown) + .pf-c-form__label, input:focus + .pf-c-form__label {
    color:#a2a2a2;
}

@media (max-width: 767px) {
    #kc-header {
      text-align: center;
      background-size: auto 50px;
    }

    .login-pf-page .card-pf {
        margin:0 auto;
    }

    .card-pf {
        width: calc(100% - 30px);
        max-width: 400px !important;
        min-height: 0;
    }

    #kc-header-wrapper {
        padding-top: 5rem;
    }


  }

