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

.login-pf body {
    background: url("../img/login-bg.jpg") no-repeat center center fixed;
    background-size: cover;
    height: 100%;
}

div.kc-logo-text {
    background-image: url("../img/a12-logo.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 63px;
    width: 300px;
    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%;
    }
}

#keycloak-bg {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kc-top-panel {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
}

.kc-top-logo {
    margin: 30px;
    cursor: pointer;
    transition: 0.15s;
}

.kc-top-panel:hover {
    opacity: 0.8;
}

.pf-v5-c-login__main-footer-band {
    padding-top: 10px;
}

.pf-v5-c-login__main-footer-band-item {
    color: #919191;
}

@media (min-width: 1200px) {
    .pf-v5-c-login__header {
        margin-block-start: 0 !important;
    }
}

.footer-logo {
    height: 96px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
}

#a12-logo {
    height: 100px;
    margin-right: 12px;
}

#mgm-logo {
    height: 20px;
    margin-right: 36px;
}

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

div.pf-v5-c-login {
    display: flex;
    min-height: unset;
}

.kc-footer {
    display: flex;
    justify-content: space-around;
    background: rgb(78, 90, 104);
    padding: 20px;
    width: 100%;
    text-align: center;
    align-items: center;
    color: white;
    box-shadow: 0 -2px 10px rgb(78, 90, 104);
    position: fixed;
    bottom: 0;
}

.kc-footer a {
    color: white;
}

.footer-icon {
    height: 18px;
    vertical-align: text-top;
}

.kc-footer div:nth-of-type(3) {
    display: none;
}

.social-icon {
    vertical-align: bottom;
}

.social-element {
    display: flex;
}

.social-link {
    border: 1px solid #e9e9e9;
    border-radius: 3px;
    padding: 0.35rem;
    width: 100%;
    color: black;
}

.social-link:hover {
    text-decoration: unset !important;
    color: white !important;
    background-color: #919191;
}

.social-footer {
    flex-direction: column;
    white-space: nowrap;
    gap: 0.5rem;
    text-align: center;
    padding-inline: 2rem;
}

/* Dark theme in Keycloak */
@media (prefers-color-scheme: dark) {
    .social-link {
        border: 1px solid white;
        color: white;
    }
}

@media (max-width: 767px) {
    .kc-top-panel {
        justify-content: center;
    }

    .kc-footer {
        flex-wrap: wrap;
        flex-direction: column-reverse;
        padding: 10px 0 0 0;
    }

    .kc-footer div:nth-of-type(1), .kc-footer div:nth-of-type(2) {
        margin-bottom: 10px;
    }

    .kc-footer div:nth-of-type(3) {
        display: unset;
        width: 100vw;
        margin-bottom: 10px;
    }

    #mgm-footer-logo {
        height: 22px;
        margin-top: 10px;
    }

    .social-footer {
        padding-inline: 1rem;
    }

    .footer-logo {
        height: 115px;
        justify-content: center;
    }

    #mgm-logo {
        margin-right: 0;
    }
}