:root {
    --rg-petrol-50: #e5f0f1;
    --rg-petrol-100: #cce1e2;
    --rg-petrol-200: #99c4cc;
    --rg-petrol-300: #5e99a6;
    --rg-petrol: #00676f;
    --rg-black: #000000;
    --rg-white: #ffffff;
    --rg-orange: #fbbc42;
    --rg-red: #d60505;
    --rg-berry-300: #c575b3;
    --rg-berry: #9e1981;
    --rg-berry-600: #834863;
    --rg-grey-50: #eeeeee;
    --rg-grey-100: #dddddd;
    --rg-grey-200: #c6c6c6;
    --rg-grey-300: #929292;
    --rg-grey: #575757;
    --rg-orange-100: #fef2d9;
    --rg-orange-200: #fde4b3;
    --rg-orange-300: #fdd78e;
    --rg-orange-500: #fbbc42;
    --rg-orange-600: #db9844;

    --rg-text-400: 14px;
    --rg-text-700: 20px;
}

.login-pf body {
    position: relative;
    font-family: "montserrat", "sans-serif";
    background: white;
    background-image: none;
    height: auto;
}

.login-pf {
    background: white;
    height: auto;
}

.login-pf-page {
    position: relative;
    display: flex;
    gap: 3rem;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
    box-shadow: none;
}

.login-pf-header {
    width: 100%;
    justify-content: space-between;
}

.hide-sm {
    display: none;
}

.login-pf-page .card-pf {
    padding: 1rem;
    width: 100%;
    height: auto;
    max-width: 696px;
    min-height: 100vh;
    background-color: white;
    box-shadow: none;

    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    outline: none;
}

.footer {
    margin-bottom: 2rem;
}

.logo-wrapper {
    height: 40px;
}

#kc-current-locale-link {
    font-family: "montserrat", "sans-serif";
}

/* MQ1 */
@media (min-width: 640px) {
    .hide-sm {
        display: block;
    }

    .login-pf-header {
        justify-content: flex-end;
    }

    .login-pf body {
        background-image: linear-gradient(90deg, var(--rg-petrol) 50%, white 50%) !important;
    }

    .login-pf-page {
        background-image: url("../img/profile.svg"); /* TODO: bg-img austauschen */
        background-position: left;
        animation: animatedBackground 30s infinite linear;
        background-repeat: repeat;
    }

    .login-pf-page .card-pf {
        padding: 1rem 2rem;
        max-width: 512px;
    }

    .footer-content {
        position: relative;
        width: 100%;
    }
}

@keyframes animatedBackground {
    from {
        background-position: 100% 100%;
    }
    to {
        background-position: 100% 42%;
    }
}

/* MQ2 */
@media (min-width: 940px) {
    .login-pf-header {
        width: 50vw;
    }

    .login-pf-page .card-pf {
        padding: 1.5rem 4rem;
    }

    .footer {
        margin-bottom: 3rem;
    }

    .footer-content {
        position: absolute;
        width: 50vw;
    }
}

/* MQ3 */
@media (min-width: 960px) {
    .logo-wrapper {
        height: 60px;
    }

    .login-pf-page .card-pf {
        max-width: 576px;
    }
}

/* MQ4 */
@media (min-width: 1200px) {
    .login-pf-page .card-pf {
        max-width: 696px;
    }
}

.login-pf a {
    color: var(--rg-petrol);
    font-weight: bold;
    text-decoration: none;
}

#requiredConsentLabel {
    font-weight: 500 !important;
}

/* HEADER */
.login-pf-page .login-pf-header {
    display: flex;
    flex-direction: row;
}

.checkbox input[type="checkbox"] {
    position: relative;
}

.login-pf-page .login-pf-signup {
    margin: 0;
    font-size: 14px;
    text-align: left;
}

.pf-c-alert.pf-m-warning.pf-m-inline {
    background: var(--rg-petrol-300);
    color: white;
    border-left: 4px solid var(--rg-petrol);
    border-radius: 5px;
    margin-bottom: 2rem;
}

.pf-c-alert.pf-m-inline::before {
    display: none;
}

.pf-c-alert__title {
    color: black;
}

.pf-c-alert.pf-m-success.pf-m-inline {
    background-color: var(--rg-petrol-100);
    color: white;
    border-left: 4px solid var(--rg-petrol);
    border-radius: 5px;
}
.pf-c-alert.pf-m-warning.pf-m-inline,
.pf-c-alert.pf-m-danger.pf-m-inline {
    background-color: var(--rg-orange-100);
    border-left: 4px solid var(--rg-orange);
    border-radius: 5px;
}

#kc-content {
    margin-bottom: 4rem;
    display: block;
}

.login-pf-page .card-pf p {
    margin-bottom: 1rem;
}
.login-pf-page .login-pf-signup a {
    margin-left: 0;
}

.pf-c-form-control {
    border-radius: 4px;
    border-width: 1px;
    border-color: var(--rg-petrol-200);
    font-size: 16px;
    padding: 12px 24px;
    line-height: 20px;
    height: min-content !important;
    color: black;
    margin-bottom: 0.5rem;
    font-family: "montserrat", "sans-serif";
}

.pf-c-form-control:hover {
    border-radius: 5px;
    border-color: var(--rg-petrol);
    height: min-content !important;
}

.pf-c-form-control:focus {
    border-width: 2px;
    border-color: var(--rg-petrol);
    padding: 12px 24px;
    outline: 0;
    height: min-content !important;
}

[type="text"]:focus,
[type="password"]:focus,
[type="email"]:focus {
    --tw-ring-color: transparent;
}

[type="checkbox"]:checked,
[type="radio"]:checked {
    color: var(--rg-petrol-300);
}

.input-error,
.pf-c-form__helper-text {
    color: var(--rg-red);
    font-size: 12px;
    margin-left: 1.5rem !important;
    padding-bottom: 1rem;
}

.pf-c-form__label {
    position: absolute;
    font-weight: bold;
    color: var(--rg-grey);
    font-size: 12px;
    padding: 0 8px;
    background: white;
    margin-top: -10px;
    margin-left: 20px;
    z-index: 10;
}

.pf-c-alert.pf-m-inline {
    padding: 0.25rem;
    padding: var(--pf-global--spacer--xs);
    border: solid #ededed;
    border: solid var(--pf-global--BorderColor--300);
    border-width: 1px;
    border-width: var(--pf-c-alert--m-inline--BorderTopWidth) var(--pf-c-alert--m-inline--BorderRightWidth)
        var(--pf-c-alert--m-inline--BorderBottomWidth) var(--pf-c-alert--m-inline--BorderLeftWidth);
    display: -ms-flexbox;
    display: grid;
    -ms-grid-columns: max-content 1fr max-content;
    grid-template-columns: max-content 1fr max-content;
    grid-template-columns: var(--pf-c-alert--grid-template-columns);
    grid-template-rows: 1fr auto;
    grid-template-rows: var(--pf-c-alert--grid-template-rows);
}

.pf-c-form-control[aria-invalid="true"] {
    border-width: 1px;
    border-color: var(--rg-red);
    padding: 0.75rem 1.5rem;
}

.pf-c-alert.pf-m-inline.pf-m-success::before {
    background-color: #92d400;
    background-color: var(--pf-global--success-color--100);
}

.pf-c-alert.pf-m-inline.pf-m-danger::before {
    background-color: var(--rg-red);
}

.pf-c-alert.pf-m-inline .pf-c-alert__icon {
    padding: 1rem 0.5rem 1rem 1rem;
    padding: var(--pf-c-alert--m-inline__icon--PaddingTop) var(--pf-c-alert--m-inline__icon--PaddingRight)
        var(--pf-c-alert--m-inline__icon--PaddingBottom) var(--pf-c-alert--m-inline__icon--PaddingLeft);
    font-size: 16px;
    font-size: var(--pf-c-alert--m-inline__icon--FontSize);
}

.pf-c-alert.pf-m-success .pf-c-alert__icon,
.pf-c-alert.pf-m-success .pf-c-alert__title {
    color: var(--rg-petrol);
    font-weight: bold;
}

.pf-c-alert.pf-m-danger .pf-c-alert__icon,
.pf-c-alert.pf-m-danger .pf-c-alert__title {
    font-weight: bold;
}

.pf-c-alert.pf-m-danger .pf-c-alert__icon {
    color: var(--rg-red);
}

.pf-c-alert.pf-m-danger .pf-c-alert__title {
    color: var(--rg-red);
}

.pf-c-alert.pf-m-warning .pf-c-alert__icon {
    color: orange;
}

.pf-c-alert__title {
    font-size: 14px; /* default - IE compatibility */
    font-size: var(--pf-global--FontSize--sm);
    padding: 5px 8px;
    padding: var(--pf-c-alert__title--PaddingTop) var(--pf-c-alert__title--PaddingRight)
        var(--pf-c-alert__title--PaddingBottom) var(--pf-c-alert__title--PaddingLeft);
}

.pf-c-button {
    font-family: "montserrat", "sans-serif";
    width: min-content;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
}

#kc-form-buttons {
    width: 100%;
    margin-bottom: 32px;
}

.pf-m-primary {
    transition: background 0.5s !important;
    background-size: 200% !important;
    background-position: 100% 0% !important;
    color: black !important;
    font-weight: bold;
    background-color: #fbbc42 !important;
    background: -moz-linear-gradient(left, #fdd78e 0%, #fdd78e 50%, #fbbc42 50%, #fbbc42 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(
        left,
        #fdd78e 0%,
        #fdd78e 50%,
        #fbbc42 50%,
        #fbbc42 100%
    ); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(
        to right,
        #fdd78e 0%,
        #fdd78e 50%,
        #fbbc42 50%,
        #fbbc42 100%
    ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.pf-m-primary:hover {
    background-position: 0% 0% !important;
    background-color: #fdd78e !important;
}

.pf-m-secondary {
    transition: background 0.5s !important;
    background-size: 200% !important;
    background-position: 100% 0% !important;
    color: black !important;
    font-weight: bold;
    border: 2px solid #fbbc42;
    background-color: white !important;
    background: -moz-linear-gradient(left, #fef2d9 0%, #fef2d9 50%, white 50%, white 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(
        left,
        #fef2d9 0%,
        #fef2d9 50%,
        #ffffff 50%,
        #ffffff 100%
    ); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(
        to right,
        #fef2d9 0%,
        #fef2d9 50%,
        #ffffff 50%,
        #ffffff 100%
    ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.pf-m-secondary:hover {
    background-position: 0% 0% !important;
    background-color: #fef2d9 !important;
}

.pf-m-secondary:focus {
    background-color: #fef2d9 !important;
    background-position: 100% 100% !important;
}

.pf-c-button::after {
    border: 0;
}

/* default - IE compatibility */
.pf-c-button.pf-m-control {
    border: solid 1px;
    border: solid var(--pf-global--BorderWidth--sm);
    border-color: rgba(230, 230, 230, 0.5);
}
/*End of IE compatibility*/

#kc-locale ul {
    background-color: #fff;
    background-color: var(--pf-global--BackgroundColor--100);
    display: none;
    min-width: 100px;
    padding: 0;
}

#kc-locale-wrapper {
    position: relative;
}
#kc-locale:hover ul,
#kc-locale-wrapper:hover ul {
    position: absolute;
    display: block;
}

#kc-registration-container {
    width: auto;
}

/* IE compatibility */
a.icon-before::before {
    content: "";
    width: 16px;
    height: 16px;
    display: block;
    background-position: center;
    background-size: contain;
    margin-right: 0.25rem;
}

a#kc-current-locale-link::before {
    background-image: url("../img/language-globe.svg");
}

a#kc-back-link::before {
    background-image: url("../img/chevron-left.svg");
}

.login-pf .container {
    padding-top: 40px;
}

#kc-header {
    display: none;
}

.required {
    color: var(--rg-red);
}

.kc-login-tooltip .kc-tooltip-text {
    top: -3px;
    left: 160%;
    background-color: black;
    visibility: hidden;
    color: #fff;

    min-width: 130px;
    text-align: center;
    border-radius: 2px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    padding: 5px;

    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
}

/* Show tooltip */
.kc-login-tooltip:hover .kc-tooltip-text {
    visibility: visible;
    opacity: 0.7;
}

/* Arrow for tooltip */
.kc-login-tooltip .kc-tooltip-text::after {
    content: " ";
    position: absolute;
    top: 15px;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent black transparent transparent;
}

@media (min-width: 768px) {
    #kc-container-wrapper {
        position: absolute;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .login-pf body {
        background: white;
    }

    #kc-header-wrapper {
        font-size: 16px;
        font-weight: bold;
        padding: 20px 60px 0 0;
        color: #72767b;
        letter-spacing: 0;
    }

    div.kc-logo-text {
        margin: 0;
        width: 150px;
        height: 32px;
        background-size: 100%;
    }

    #kc-form {
        float: none;
    }

    #kc-info-wrapper {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: transparent;
    }

    .login-pf .container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #kc-logo-wrapper {
        background-size: 100px 21px;
        height: 21px;
        width: 100px;
        margin: 20px 0 0 20px;
    }
}

@media (min-height: 646px) {
    #kc-container-wrapper {
        bottom: 12%;
    }
}

@media (max-height: 645px) {
    #kc-container-wrapper {
        padding-top: 50px;
        top: 20%;
    }
}

.card-pf form.form-actions .btn {
    float: right;
    margin-left: 10px;
    border: 0;
}

.login-pf-page .login-pf-brand {
    margin-top: 20px;
    max-width: 360px;
    width: 40%;
}

/* Internet Explorer 11 compatibility workaround for select-authenticator screen */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .select-auth-box-parent {
        border-top: 1px solid #f0f0f0;
        padding-top: 1rem;
        padding-bottom: 1rem;
        cursor: pointer;
    }

    .select-auth-box-headline {
        font-size: 16px;
        color: #06c;
        font-weight: bold;
    }

    .select-auth-box-desc {
        font-size: 14px;
    }

    .pf-l-stack {
        flex-basis: 100%;
    }
}
/* End of IE11 workaround for select-authenticator screen */

.select-auth-box-arrow {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.select-auth-box-icon {
    display: flex;
    flex: 0 0 2em;
    justify-content: center;
    margin-right: 1rem;
    margin-left: 3rem;
}

.select-auth-box-parent {
    border-top: 1px solid var(--pf-global--palette--black-200);
    padding-top: 1rem;
    padding-bottom: 1rem;
    cursor: pointer;
}

.select-auth-box-parent:hover {
    background-color: #f7f8f8;
}

.select-auth-container {
    padding-bottom: 0px !important;
}

.select-auth-box-headline {
    font-size: var(--pf-global--FontSize--md);
    color: var(--pf-global--primary-color--100);
    font-weight: bold;
}

.select-auth-box-desc {
    font-size: var(--pf-global--FontSize--sm);
}

#kc-register-form,
#kc-form-login,
#kc-reset-password-form {
    width: 100%;
    box-sizing: border-box;
}

/*phone*/
@media (max-width: 767px) {
    .kc-social-grid {
        grid-column-end: 12;
        --pf-l-grid__item--GridColumnEnd: span 12;
    }

    .kc-social-grid .kc-social-icon-text {
        left: -15px;
    }
}

.pf-c-dropdown__menu {
    box-shadow: 0px 0px 4px #c6c6c6;
    z-index: 2 !important;
    text-align: left !important;
}

.pf-c-dropdown__menu-item {
    font-family: "montserrat", "sans-serif";
    transition: background 0.5s !important;
    background-size: 210% !important;
    background-position: 100% 0% !important;
    background-color: white !important;
    background: -moz-linear-gradient(
        left,
        var(--rg-petrol-100) 0%,
        var(--rg-petrol-100) 50%,
        white 50%,
        white 100%
    ); /* FF3.6-15 */
    background: -webkit-linear-gradient(
        left,
        var(--rg-petrol-100) 0%,
        var(--rg-petrol-100) 50%,
        white 50%,
        white 100%
    ); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(
        to right,
        var(--rg-petrol-100) 0%,
        var(--rg-petrol-100) 50%,
        white 50%,
        white 100%
    ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.pf-c-dropdown__menu-item:hover {
    background-position: 0% 0% !important;
    background-color: #fdd78e !important;
}

.pf-c-dropdown__menu:after {
    content: "";
    width: 100%;
    background: transparent;
    height: 0;
    border-left: 1rem solid transparent;
    border-right: 1rem solid transparent; /* 40px height (20+20) */
    border-bottom: 1rem solid transparent;
    position: absolute;
    top: -1rem;
    left: 1rem;
    z-index: 1;
}

.radio-b {
    margin-top: 0 !important;
    margin-right: 0.75rem !important;
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 9999px;
    border-width: 1px;
    border-color: rgb(153 196 204);
}

.radio-b:hover {
    border-color: var(--rg-petrol-300) !important;
    cursor: pointer;
}

.radio-b:checked {
    color: var(--rg-petrol-300) !important;
}

.radio-b:checked:hover {
    color: var(--rg-petrol-200) !important;
}

.radio-b:focus {
    outline: 2px solid #fff0 !important;
    box-shadow: none !important;
}

.radio-b:checked:focus {
    border: 2px solid var(--rg-petrol) !important;
}
