.login-pf-page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

#header-logo-link {
    display: flex;
    height: fit-content;
    min-width: min(100%,350px);
    max-width: 350px;
    margin: 0 auto;
}

#header-logo {
    margin: 0 auto;
    height: 65px;
}

.card-pf {
    padding: 10px 40px 30px 40px;
}

.col-md-10 {
    width: 100%;
}

#kc-header {
    background-image: url('../img/logo.svg');
    background-repeat: no-repeat;
    background-position: top;
    background-size: 250px;
    height: 110px;
}

#kc-header-wrapper {
    display: none;
    color: black;
    font-size: 20px;
    padding: 90px 10px 20px;
    font-weight: 600;
}

#kc-page-title {
    font-weight: 500;
}

#kc-locale-dropdown a {
    font-weight: 600;
}

@media (max-width: 767px) {
    #kc-header {
        background-size: 200px;
        height: 50px;
        text-align: center;
    }

    #kc-header-wrapper {
        padding: 60px 10px 20px;
    }

    h1#kc-page-title {
        margin-top: 40px;
    }
}

@media (min-width: 768px) {

    /* Login form box */
    .card-pf {
        border: 0;
        box-shadow: none;
        min-width: min(100%,500px);
    }

    .login-pf-page .login-pf-page-header {
        margin-bottom: 10px;
    }
}

.pf-c-form-control:hover {
    border-bottom-color: inherit;
}

/* Button */
.pf-c-button {
    height: 50px;
    font-weight: bold;
    font-size: 15px;
    color: #111143;
    background-color: #c9d4ec;
    line-height: normal;
    border: 0;
    border-radius: 40px;

    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button hover */
.pf-c-button:hover {
    color: #111143;
    background-color: #ffaa00;
}

/* Sign in Button */
.pf-c-button.pf-m-primary {
    color: white;
    background-color: #111143;
}

/* Sign in Button hover */
.pf-c-button.pf-m-primary:hover {
    color: #111143;
    background-color: #ffaa00;
}

/* Show / Hide password button */
.pf-c-button.pf-m-control {
    --pf-c-button--after--BorderColor: transparent;
    border: 1px solid #c9d4ec !important;
    margin-left: 6px;
}

.pf-c-button.pf-m-control:hover {
    background-color: #c9d4ec;
}

/* Forms */
.pf-c-form-control {
    height: 50px !important;
    border: 1px solid #c9d4ec;
    border-radius: 40px;
    padding-left: 15px;
    padding-right: 15px;
}

.pf-c-form-control:hover {
    border: 1px solid #c9d4ec; /* prevent default hover style */
}

.pf-c-form-control:focus {
    border: 1px solid #111143;
    outline: none;
}

#kc-info {
    margin: 0;
}

#kc-info-wrapper {
    font-size: 16px;
    background-color: white;
    padding: 0;
}


a {
    font-size: 15px;
    color: #111143;

    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: #ffaa00 !important;
    text-decoration: none;
}

#kc-registration-container {
    margin-top: 1rem;
}

#kc-registration a {
    display: inline-block;
    padding: 0.7rem 1rem;
    margin: 0;
    line-height: inherit;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid currentColor;
    text-align: center;
    border: none;
    background-color: #c9d4ec;
    color: #111143;
}

#kc-registration a:hover {
    color: #111143 !important;
    background-color: #ffaa00;
}

#kc-registration {
    margin-top: 1rem;
    text-align: center;
}


/* Change Password Page Buttons */

#kc-form-buttons {
    margin-top: 20px;
    display: flex;
}

#kc-form-buttons button {
    margin-left: auto;
}

.btn-default {
    background-image: none;
}

/* Checkbox */

#kc-form-options .checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #5b5b6e;
    cursor: pointer;
    user-select: none;
}

#kc-form-options .checkbox input[type="checkbox"] {
    position: static;   /* statt absolute */
    margin: 0;          /* hebt margin-left: -20px auf */
    flex: 0 0 auto;     /* Box schrumpft nicht */
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid #c9d4ec;   /* gleicher Rand wie die Inputfelder */
    border-radius: 6px;            /* greift die runden Inputs auf */
    background: #fff;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: background-color .15s ease, border-color .15s ease;
}

#kc-form-options .checkbox input[type="checkbox"]::before {
    content: "";
    width: 11px;
    height: 11px;
    background: #fff;              /* weißes Häkchen */
    transform: scale(0);
    transition: transform .12s ease-in-out;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

#kc-form-options .checkbox input[type="checkbox"]:checked {
    background: #111143;           /* gleiches Navy wie der Sign-In-Button */
    border-color: #111143;
}

#kc-form-options .checkbox input[type="checkbox"]:checked::before {
    transform: scale(1);
}

#kc-form-options .checkbox input[type="checkbox"]:hover {
    border-color: #c9d4ec;
}

#kc-form-options .checkbox input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 22, 74, .18);  /* dezenter Fokus-Ring */
}

/* hebt Keycloaks absolute Positionierung auf */
#kc-form-options .checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 10px;          /* hier steuerst du den Abstand */
  padding-left: 0;    /* Bootstrap-Reserve entfernen */
}

/* error box */
.alert-error {
    border: none;
    border-radius: 15px;
}

/* alert box */
.alert-warning {
    border: none;
    border-radius: 15px;
}

/* title */
#kc-page-title {
    color: #111143;
    font-size: 18px;
}