/* source-sans-pro-200 - latin */
@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 200;
    src: local(""),
    url("../fonts/source-sans-pro-v21-latin-200.woff2") format("woff2");
}
/* source-sans-pro-300 - latin */
@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 300;
    src: local(""),
    url("../fonts/source-sans-pro-v21-latin-300.woff2") format("woff2");
}
/* source-sans-pro-regular - latin */
@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 400;
    src: local(""),
    url("../fonts/source-sans-pro-v21-latin-regular.woff2") format("woff2");
}
/* source-sans-pro-600 - latin */
@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 600;
    src: local(""),
    url("../fonts/source-sans-pro-v21-latin-600.woff2") format("woff2");
}
/* source-sans-pro-700 - latin */
@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 700;
    src: local(""),
    url("../fonts/source-sans-pro-v21-latin-700.woff2") format("woff2");
}
/* source-sans-pro-900 - latin */
@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 900;
    src: local(""),
    url("../fonts/source-sans-pro-v21-latin-900.woff2") format("woff2");
}

:root {

    /* MKWZ styles */
    --pf-v5-global--FontFamily--heading: "Source Sans Pro", "RedHatText", helvetica, arial, sans-serif;
    --pf-v5-global--FontFamily--text: "Source Sans Pro", "RedHatText", helvetica, arial, sans-serif;

    --brand-blue: #002595;
    --blue-variant: #3555CB;
    --blue-6: #E8EBF9;

    --background-grey: #F5F5F5;
    --background-light-grey: rgba(255, 255 , 255, .6); /* Hover */

    --hard-black: rgba(0, 0, 0, .87);
    --mild-black-60: rgba(0, 0, 0, .60);
    --mild-black-62: rgba(0, 0, 0, .62);
    --soft-black: rgba(0, 0, 0, .54);

    --bg-page: #F5F5F5;

    --mkwz-logo-url: url('../images/logo-mankiewicz.svg');

    --mkwz-logo-height: 63px;
    --mkwz-logo-width: 378px;
    --mkwz-card-top-color: var(--brand-blue);

    /* Background colors for toolbar and sidebar */
    --pf-v5-global--BackgroundColor--dark-100: var(--brand-blue);
    --pf-v5-global--palette--black-1000: var(--brand-blue);
    --pf-v5-c-page__sidebar--BackgroundColor: var(--brand-blue);

}

/* Form */
.pf-v5-c-form-control {
    --pf-v5-c-form-control--hover--after--BorderBottomColor: var(--blue-variant);
}

.pf-v5-c-form__label {
    color: var(--hard-black);
}

.pf-v5-theme-dark .pf-v5-c-form__label {
    color: #fff;
}


/* Button */
.pf-v5-c-button {
    --pf-v5-c-button--m-primary--BackgroundColor: var(--brand-blue);
    --pf-v5-c-button--m-primary--hover--BackgroundColor: var(--blue-variant);
    --pf-v5-c-button--m-link--Color: var(--brand-blue);
    --pf-v5-c-button--m-link--hover--Color: var(--blue-variant);
}

/* Sidebar */
.pf-v5-c-nav {
    --pf-v5-c-nav__link--m-current--BackgroundColor: var(--blue-variant);
    --pf-v5-c-nav__link--m-current--after--BorderColor: #fff;

    --pf-v5-c-nav__link--hover--BackgroundColor: var(--blue-variant);
    --pf-v5-c-nav__link--focus--BackgroundColor: var(--blue-variant);
    --pf-v5-c-nav__link--active--BackgroundColor: var(--blue-variant);

    --pf-v5-c-nav__link--before--BorderColor: #fff;
    --pf-v5-c-nav__item--before--BorderColor: #fff;
}

.pf-v5-c-jump-links {
    --pf-v5-c-jump-links__item--m-current__link--before--BorderColor: var(--blue-variant);
}



.pf-c-nav__list .pf-c-nav__link {
    --pf-c-nav__list-link--Color: #2B9AF3;
    --pf-c-nav__list-link--m-current--Color: #004080;
}

.pf-c-nav__simple-list .pf-c-nav__link {
    --pf-c-nav__simple-list-link--Color: #2B9AF3;
    --pf-c-nav__simple-list-link--m-current--Color: #004080;
}

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

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

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

.login-pf body {
    height: 100%;
    background: radial-gradient(circle at top left, rgba(0,0,0,0.02), transparent 40%), var(--bg-page);
}

.pf-v5-c-login__header .pf-v5-c-brand,
div.kc-logo-text {
    background-image: var(--mkwz-logo-url);
    height: var(--mkwz-logo-height);
    width: var(--mkwz-logo-width);
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 auto;
    color: transparent;
    margin-bottom: 20px;
}

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; */
    /* Hide text for logo */
    color: transparent;
    text-align: center;
}

#kc-code pre code {
    word-break: break-all;
}

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

/* Form */
.pf-v5-c-form-control {
    --pf-v5-c-form-control--hover--after--BorderBottomColor: var(--blue-variant);
}

/* Default warning color 'orange' */
/*
.pf-v5-c-alert.pf-m-warning,
.pf-v5-c-alert__title {
    color: red;
    --pf-v5-c-alert--BorderTopColor: red;
}
*/


/* Button */
.pf-v5-c-button {
    --pf-v5-c-button--m-primary--BackgroundColor: var(--brand-blue);
    --pf-v5-c-button--m-primary--hover--BackgroundColor: var(--blue-variant);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-page: #121212;
    }

    .login-pf body {
        background: radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 40%), var(--bg-page);
    }

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