:root {
    --keycloak-logo-url: url('../img/keycloak-logo-text.png');
    --keycloak-bg-logo-url: url("../img/keycloak-bg.png");
    --experior-white-logo-url: url("../img/logo3white.png");
    --keycloak-logo-height: 63px;
    --keycloak-logo-width: 300px;
}

/* My custom add */
@font-face {
    font-family: 'Raleway';
    src: url('./fonts/raleway-medium-webfont.woff') format('woff'),
    url('./fonts/raleway-medium-webfont.ttf') format('truetype'),
    url('./fonts/raleway-medium-webfont.eot');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('./fonts/raleway-semibold-webfont.woff') format('woff'),
    url('./fonts/raleway-semibold-webfont.ttf') format('truetype'),
    url('./fonts/raleway-semibold-webfont.eot');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Pacifico';
    src: url('./fonts/Pacificoregular.woff2') format('woff2'),
    url('./fonts/Pacificoregular.woff') format('woff'),
    url('./fonts/Pacificoregular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    overflow: hidden;
    font: 14px / 22px "Raleway", Helvetica Neue, Helvetica, Arial, sans-serif;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;

}

/*main footer*/
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 15px;
    z-index: 10;
    height: 70px;
    display: flex;
    align-items: center;
}

.footer_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.footer_list li {
    display: flex;
    align-items: center;
}

.footer_list a {
    color: black;
    text-decoration: none;
}
.footer_links a {
    color: #999999;
}
.switch_platform {
    font-weight: bold
}

.footer_logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.footer_links {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.switch_platform {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.footer_list li {
    margin: 0 15px;
}

.footer_list li.switch_platform {
    margin-left: auto;
}

.footer_list .switch_platform span {
    padding: 0 10px 0 0;
    vertical-align: center;
}


.footer_logo img {
    height: 40%;
    width: 40%;
}

.switch_platform a {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.switch_platform img {
    height: 24px;
    display: block;
}

@media (max-width: 768px) {
    .main-footer {
        display: none;
        min-height: 125px;
        padding: 20px 0;
    }

    .footer_list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .footer_logo,
    .switch_platform {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}
/*main footer*/

.login-pf body {
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

.pf-v5-c-login__container {
    grid-template-columns: 34rem;
    grid-template-areas: "header"
                         "main"
}

.pf-v5-c-login__main {
    align-self: start;
    background: #c0bbbded;
    border-radius: 3%;
}

/* logo white under the form */
#kc-header-wrapper {
    background-image: var(--experior-white-logo-url);
    height: 117px;
    width: 330px;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 auto;
}

.pf-v5-c-button.pf-m-primary {
    border-radius: 5% / 100%;
    background-color: #fdb405e0;
}

/* My custom add */

.pf-v5-c-login__container {
    grid-template-columns: 34rem;
    grid-template-areas: "header"
                         "main"
}

div.kc-logo-text {
    background-image: var(--keycloak-logo-url);
    height: var(--keycloak-logo-height);
    width: var(--keycloak-logo-width);
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 auto;
}

div.kc-logo-text span {
    display: none;
}

.kc-login-tooltip {
    position: relative;
    display: inline-block;
}

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

#kc-recovery-codes-list {
    columns: 2;
}

#certificate_subjectDN {
    overflow-wrap: break-word
}

hr {
    margin-top: var(--pf-v5-global--spacer--sm);
    margin-bottom: var(--pf-v5-global--spacer--md);
}

@media (min-width: 768px) {
    div.pf-v5-c-login__main-header {
        grid-template-columns: 70% 30%;
    }
}

@media (min-width: 769px) {
    .pf-v5-c-login {
        padding: 0 0 70px;
    }
}
