:root {
    --keycloak-logo-url: url('../img/logo.png');
    --keycloak-logo-height: 200px;
    --keycloak-logo-width: 500px;
    --pf-v5-global--primary-color--300: #9b3f9c;
    --pf-v5-c-button--m-primary--hover--BackgroundColor: #5d3471;
    --pf-v5-global--primary-color--light-100: #9b3f9c;
    --pf-v5-global--primary-color--dark-100: #9b3f9c;
    --pf-v5-global--active-color--100: #9b3f9c !important;
    --pf-v5-c-button--m-primary--hover--BackgroundColor: #5d3471 !important;
    --pf-v5-global--primary-color--200: #5d3471 !important;
}

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

.login-pf body {
    background-color: rgba(48,54,59,1);
    background-size: cover;
    height: 100%;
}

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
}

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    white-space: normal;
    color: var(--pf-v5-global--Color--light-100) !important;
    text-align: center;
}

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

.pf-v5-c-login__main {
    background-color: rgba(23, 23, 23, .85) !important;
}

.pf-v5-c-login__header .pf-v5-c-brand {
    margin-block-end: 0 !important;
}

.pf-v5-c-login__header {
    margin-block-start: 0 !important;
}

/* div.kc-logo-text {
    height: 200px !important;
    width: 500px !important;
} */

.pf-v5-c-login__container {
    margin-top: -200px;
}

textarea:focus, input:focus{
    outline: none;
}

@media (max-width: 574px) {
    .pf-v5-c-login__container {
        margin-top: 0px;
    }
}

@media (max-width: 500px) {
    :root {
        --keycloak-logo-height:37vw;
        --keycloak-logo-width:100vw;
    }
    /* div.kc-logo-text {
        height: 150px !important;
        width: 90vw !important;
    } */
}