:root {
    --keycloak-logo-url: url('../img/keycloak-logo-text.svg');
    --keycloak-bg-logo-url: url("../img/keycloak-bg-darken.svg");
    --keycloak-logo-height: 63px;
    --keycloak-logo-width: 300px;
    --keycloak-card-top-color: transparent;
    --primary: #ffc100;
    --primary-hover: #ffdf7f;
    --warn: #ff8800;
    --success: #00b963;
    --error: #ff9090;
    --text-color: #ffffff;
    --text-inverse-color: #000000;
    --radius: 4px;
}

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

.pf-v5-c-login__main {
    background-color: transparent;
}

.pf-v5-c-login__main-header {
    border-top: 4px solid var(--keycloak-card-top-color);
}

/* Info section - top margin + bottom padding */
.pf-v5-c-login__main-footer-band:first-child {
    margin-block-start: var(--pf-v5-global--spacer--lg);
}

.pf-v5-c-login__main-footer-band:last-child {
    padding-bottom: 0;
}
/* Info section */

.login-pf body {
    color: var(--text-color);
    background: url("../img/background_login_sm.jfif") no-repeat center center fixed;
    background-size: cover;
    background-position: center;
    height: 100%;
    position: relative;
}

.overlay {
    background-color: black;
    opacity: .8;
    position: fixed;
    inset: 0;
    z-index: -1;
}

a, .link {
    color: var(--primary) !important;
    font-weight: bold;
}

a:hover, .link:hover {
    text-decoration: underline;
    color: var(--primary);
}

.button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pf-m-primary {
    background: var(--primary) !important;
    background-color: var(--primary) !important;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    color: var(--text-inverse-color) !important;
    width: 170px !important; 
}

#kc-form-buttons {
    display: grid;
    justify-items: center;
    align-items: center;
}

.pf-v5-c-form__actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pf-m-primary:hover {
    background: var(--primary-hover) !important;
}

.pf-m-secondary  {
    color: var(--primary) !important;
    border: none;
    --pf-v5-c-button--after--BorderColor: transparent !important;
}
 
#kc-login {
    background-color: var(--primary);
}

.pf-m-error {
    text-align: left;
    color: var(--error);
}

.pf-v5-c-form__group-label label {
    display: block;
    font-size: 1rem;
    line-height: 1rem;
    color: var(--text-color);
    text-align: left;
    font-weight: normal;
    text-transform: uppercase;
}

.pf-v5-c-check__label {
    color: var(--text-color);
    text-align: left;
    font-weight: normal;
}

.subtitle {
    font-size: 1rem;
    line-height: 150%;
    margin-top: 2rem;
    margin-bottom: 1rem;
    width: 150%;
}

.pf-v5-u-mb-md-on-md label {
    font-size: 1.5rem;
}   

.title, .subtitle {
    font-weight: normal;
    text-align: left;
    color: var(--text-color);
}
.title *, .subtitle * {
    color: var(--text-color);
}

.pf-v5-c-login__header {
    position: relative;
    padding-bottom: 2rem;
}

.input-field  {
    border-radius: var(--radius) !important;
    outline: none  !important;
    border: none  !important;
    padding: .5rem 1rem  !important;
    height: auto  !important;
    width: 100%  !important;
    color: var(--text-inverse-color)  !important;
}
 .input-field:focus {
    box-shadow: 0 0 0 2px var(--primary) inset !important;
    height: auto  !important;
    padding-bottom: .5rem  !important;
}

.input-field[aria-invalid=true] {
    box-shadow: 0 0 0 2px var(--error) inset !important;
}

#kc-info {
    visibility: hidden;
}









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-verify-email-form {
    margin-top: 24px;
    margin-bottom: 24px;
}

#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);
}

#kc-social-providers svg:not(.google) {
    filter: invert(47%) sepia(88%) saturate(7486%) hue-rotate(199deg) brightness(91%) contrast(101%);
}

#kc-social-providers svg {
    height: var(--pf-v5-global--FontSize--xl);
}

@media (prefers-color-scheme: dark) {
    #kc-social-providers svg:not(.google) {
        filter: invert(54%) sepia(96%) saturate(2028%) hue-rotate(174deg) brightness(99%) contrast(97%);
    }
}

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