:root {
    --rg-petrol-25: #F2F7F8;
    --rg-petrol-50: #e5f0f1;
    --rg-petrol-100: #cce1e2;
    --rg-petrol-200: #99c4cc;
    --rg-petrol-300: #5e99a6;
    --rg-petrol-500: #00676F;
    --rg-petrol: #00676f;
    --rg-black: #0d0d0d;
    --rg-white: #ffffff;
    --rg-red-300: #FDF4F4;
    --rg-red-600: #AB0404;
    --rg-red: #EB3B43;
    --rg-berry-300: #c575b3;
    --rg-berry-500: #9E1981;
    --rg-berry-600: #834863;
    --rg-berry: #9e1981;
    --rg-grey-50: #FAFAFA;
    --rg-grey-100: #F0F0F0;
    --rg-grey-200: #E0E0E0;
    --rg-grey-300: #C7C7C7;
    --rg-grey-400: #9E9E9E;
    --rg-grey-500: #757575;
    --rg-grey-600: #595959;
    --rg-grey-700: #3F3F3F;
    --rg-grey-800: #2A2A2A;
    --rg-grey-900: #1A1A1A;
    --rg-grey: #595959;
    --rg-orange-100: #fef2d9;
    --rg-orange-200: #fde4b3;
    --rg-orange-300: #fdd78e;
    --rg-orange-500: #fbbc42;
    --rg-orange-600: #db9844;
    --rg-orange: #fbbc42;

    --rg-text-400: 1rem;
    --rg-text-700: 2rem;
}

.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 {
    height: 60px;
}

.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");
        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;
    }

    .logo {
        height: 85px;
    }

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

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

a {
    color: var(--rg-black);
    font-weight: 600; !important;
    font-size: 1rem;
    line-height: 1.5rem;
}

a:hover {
    text-decoration: none;
    font-weight: 700; !important;
    color: var(--rg-petrol-300);
}

#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-inline::before {
    display: none;
}

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

.pf-c-alert.pf-m-success.pf-m-inline {
    background-color: #2BB3591A;
    color: var(--rg-black);
    border: none;
    border-radius: 8px;
    margin: 0; !important;
    padding: 8px; !important;
}

.pf-c-alert.pf-m-warning.pf-m-inline{
    background-color: #FFB8001A;
    color: var(--rg-black);
    border: none;
    border-radius: 8px;
    margin: 0; !important;
    padding: 8px; !important;
}

.pf-c-alert.pf-m-danger.pf-m-inline {
    background-color: #EB3B431A;
    color: var(--rg-black);
    border: none;
    border-radius: 8px;
    margin: 0; !important;
    padding: 8px; !important;
}

#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-grey);
    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::placeholder {
    color: black;
}

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

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

[type="text"],
[type="password"],
[type="email"] {
    --tw-ring-color: transparent;
    border: 1px solid var(--rg-grey-200)
}

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

.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: 600;
    font-size: 0.75rem;
    line-height: 1;
    color: var(--rg-black);
    padding: 0 8px;
    background: white;
    margin-top: -10px;
    margin-left: 20px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

div:focus-within > label[for="password"],
div:focus-within > label[for="password-new"],
div:focus-within > label[for="password-confirm"],
div:focus-within > label[for="firstName"],
div:focus-within > label[for="lastName"],
div:focus-within > label[for="email"],
div:focus-within > label[for="username"] {
    opacity: 1;
}

div:has(#password:not(:placeholder-shown)) > label[for="password"],
div:has(#password-new:not(:placeholder-shown)) > label[for="password-new"],
div:has(#firstName:not(:placeholder-shown)) > label[for="firstName"],
div:has(#lastName:not(:placeholder-shown)) > label[for="lastName"],
div:has(#email:not(:placeholder-shown)) > label[for="email"],
div:has(#password-confirm:not(:placeholder-shown)) > label[for="password-confirm"],
div:has(#username:not(:placeholder-shown)) > label[for="username"] {
    opacity: 1;
}

#password:focus::placeholder,
#password-new:focus::placeholder,
#firstName:focus::placeholder,
#password-confirm:focus::placeholder,
#lastName:focus::placeholder,
#email:focus::placeholder,
#username:focus::placeholder {
    opacity: 0;
}

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

.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__title {
    color: var(--rg-black);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
}

.pf-c-alert__icon,
.pf-c-alert__icon span {
    height: 16px;
    width: 16px;
    color: var(--rg-black);
    padding-top: 2px;
}

.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: var(--rg-white) !important;
    font-weight: bold;
    background-color: var(--rg-black) !important;
    border-radius: 40px;
    line-height: 24px;
    font-size: 16px;
}

.pf-m-primary:hover {
    background-position: 0 0 !important;
    background-color: var(--rg-petrol-300) !important;
}

.pf-m-secondary {
    transition: background 0.5s !important;
    background-size: 200% !important;
    background-position: 100% 0 !important;
    color: var(--rg-black) !important;
    font-weight: bold;
    border: 1px solid var(--rg-black);
    background-color: var(--rg-white) !important;
}

.pf-m-secondary:hover {
    background-position: 0 0 !important;
    color: var(--rg-petrol-300) !important;
    background-color: var(--rg-white) !important;
    border: 1px solid var(--rg-petrol-300)
}

.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 var(--pf-global--BorderWidth--sm);
    border-color: rgba(230, 230, 230, 0.5);
}
/*End of IE compatibility*/

#kc-locale ul {
    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");
    margin-right: 0.5rem;
}

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

.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: 0 !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--type-900);
}

#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: 0 0 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;
}

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

.checkbox-label {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

[type="checkbox"] {
    border: 1px solid var(--rg-grey-300) !important;
}

[type="checkbox"]:hover {
    border-color: var(--rg-petrol-300) !important;
    cursor: pointer;
}

[type="checkbox"]:checked:hover {
    border-color: var(--rg-petrol-300) !important;
    background-color: var(--rg-petrol-300) !important;
    cursor: pointer;
}

.radio-b {
    margin-top: 0 !important;
    margin-right: 0.75rem !important;
    height: 24px;
    width: 24px;
    border: 1px solid var(--rg-grey-300);
    border-radius: 9999px;
    font-weight: 500;
    font-size: 16px;
}

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

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

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

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

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