
:root {
    --mi-background: #151E28;
    --mi-backgroundAlt: #283748;
    --mi-backgroundAlt2: #3A4A5D;
    --mi-text: #ffffff;
    --mi-primary: #00DAE6;
    --mi-uiBackground: #4F657D;
    --mi-error: #F90000
}

:root {
    --google-red: #DB4437;
    --facebook-blue: #3B5998;
}


/* Patternfly CSS places a "bg-login.jpg" as the background on this ".login-pf" class.
   This clashes with the "keycloak-bg.png' background defined on the body below.
   Therefore the Patternfly background must be set to none. */
.login-pf, .login-pf body {
    background: var(--mi-background);
    color: var(--mi-text);
}



a, a:visited{
    text-decoration: none;
    color: var(--mi-primary);
    transition: color 0.3s;
}

a:hover, a:active{
    text-decoration: none;
    color: var(--mi-primary);
    opacity: 0.9;
}
a:focus{
    outline: var(--mi-primary) auto 1px;
    outline-offset: -2px;
    text-decoration: none;
}

.login-pf body {
    height: 100%;
}

.pf-c-form-control{
    background-color: var(--mi-uiBackground);
    color: var(--mi-text);
    border-color: var(--mi-uiBackground);
    border-radius: 3px;
}

.pf-c-form-control:focus-visible{
    outline: 1px solid var(--mi-primary);
}

textarea.pf-c-form-control {
	height: auto;
}

input.pf-c-form-control{
    height: 35px;
    padding: 3px 10px;
}

.alert-warning{
    margin-bottom: 10px;
}

.pf-c-form__label {
    color: var(--mi-text);
    font-weight: 400;
}

.pf-c-alert__title {
    font-size: 12px;
}

p.instruction {
    margin: 5px 0;
    color: var(--mi-text);
    opacity: 0.8;
}

.pf-c-button.pf-m-control {
    border: 1px solid var(--mi-uiBackground);
    box-shadow: none;
    outline: none;
    background-color: var(--mi-uiBackground);
    color: var(--mi-primary);
    line-height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    height: 35px;
}


.pf-c-button.pf-m-control:after{
    content: none;
}

.pf-c-button{
    background-color: var(--mi-primary);
    color: var(--mi-text);
    border-color: var(--mi-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    height: 33px;
    border: 1px solid var(--mi-primary);
    border-radius: 3px;
}

.pf-c-button.pf-m-primary{
    background-color:var(--mi-primary);
    color: var(--mi-backgroundAlt);
    border-color: var(--mi-primary);

}

#social-facebook{
    background-color: var(--facebook-blue);
    border-color: var(--facebook-blue);
    color: white;
}

#social-google{
    background-color: var(--google-red);
    border-color: var(--google-red);
    color: white;
}

h1#kc-page-title {
    font-size: 24px;
}

#kc-locale ul {
    background-color: var(--mi-backgroundAlt);
    display: none;
    top: 20px;
    min-width: 100px;
    padding: 0;
    border-radius: 3px;
    overflow: hidden;
}

#kc-locale-dropdown{
    display: inline-block;
}

#kc-locale-dropdown:hover ul {
    display:block;
}

#kc-locale-dropdown a {
    color: var(--mi-primary);
    text-align: right;
    font-size: 12px;
}

#kc-locale-dropdown button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--mi-primary);
    text-align: right;
    font-size: 12px;
}

.login-pf .container {
    padding-top: 40px;
}

#kc-logo {
    width: 100%;
}

.header-logo {
    max-height: 63px;
    width: 300px;
    object-fit: contain;
    display: block;
    margin: auto;
}


#kc-header {
    overflow: visible;
    white-space: nowrap;
}

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    padding: 62px 10px 20px;
    white-space: normal;
}

#kc-content {
    width: 100%;
}

#kc-attempted-username {
    font-size: 20px;
    font-family: inherit;
    font-weight: normal;
    padding-right: 10px;
}

#kc-username {
    text-align: center;
    margin-bottom:-10px;
}

#kc-webauthn-settings-form {
    padding-top: 8px;
}

.pf-c-dropdown__menu-item:hover{
    background-color: var(--mi-background);
    outline: none;
}



html[dir="rtl"] .checkbox input[type=checkbox], 
html[dir="rtl"] .checkbox-inline input[type=checkbox], 
html[dir="rtl"] .radio input[type=radio], 
html[dir="rtl"] .radio-inline input[type=radio] {
    position: absolute;
    margin-right: -20px;
}

html[dir="rtl"] .checkbox label, .radio label{
    padding-right: 20px;
    padding-left: 0;
}

html[dir="rtl"] .form-group {
    text-align: right;
}

.login-pf-page .login-pf-signup a{
    margin: 0 10px;
}

.pf-c-form-control[aria-invalid=true]{
    background-image: none !important;
}

/* #kc-form-webauthn .select-auth-box-parent {
    pointer-events: none;
}

#kc-form-webauthn .select-auth-box-desc {
    color: var(--pf-global--palette--black-600);
}

#kc-form-webauthn .select-auth-box-headline {
    color: var(--pf-global--Color--300);
}

#kc-form-webauthn .select-auth-box-icon {
    flex: 0 0 3em;
}

#kc-form-webauthn .select-auth-box-icon-properties {
    margin-top: 10px;
    font-size: 1.8em;
}

#kc-form-webauthn .select-auth-box-icon-properties.unknown-transport-class {
    margin-top: 3px;
}

#kc-form-webauthn .pf-l-stack__item {
    margin: -1px 0;
} */

#kc-content-wrapper {
    margin-top: 20px;
}

#kc-form-wrapper {
    margin-top: 10px;
}

#kc-info {
    margin: 20px -40px -30px;
}

#kc-info-wrapper {
    font-size: 13px;
    padding: 20px 30px;
    background-color: var(--mi-backgroundAlt);
    color: var(--mi-text);
border: none;
    font-weight: 400;
}

#kc-form-options span {
    display: block;
}

#kc-form-options .checkbox {
    margin-top: 0;
    color: var(--mi-text);
}

#kc-terms-text {
    margin-bottom: 20px;
}

#kc-registration-terms-text {
    max-height: 100px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 5px;
}

#kc-registration {
    margin-bottom: 0;
}

/* TOTP */

.subtitle {
    text-align: right;
    margin-top: 30px;
    color: var(--mi-text);
}

.subtitle .required{
    color: var(--mi-text);
    opacity: 1;
}

.required {
    color: var(--mi-error);
    opacity: 0.9;
}

ol#kc-totp-settings {
    margin: 0;
    padding-left: 20px;
}

ul#kc-totp-supported-apps {
    margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
    max-width:150px;
    max-height:150px;
}

#kc-totp-secret-key {
    background-color: #fff;
    color: #333333;
    font-size: 16px;
    padding: 10px 0;
}

/* OAuth */

#kc-oauth h3 {
    margin-top: 0;
}

#kc-oauth ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 3px;
}

#kc-oauth ul li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    padding: 10px 0;
}

#kc-oauth ul li:first-of-type {
    border-top: 0;
}

#kc-oauth .kc-role {
    display: inline-block;
    width: 50%;
}

/* Code */
#kc-code textarea {
    width: 100%;
    height: 8em;
}

/* Social */
.kc-social-links {
    margin-top: 20px;
}

.kc-social-links li {
    width: 100%;
}

.kc-social-provider-logo {
    font-size: 18px;
    line-height: 19px;
}


.kc-social-item {
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.kc-social-provider-name {
    position: relative;
}

.pf-v5-c-input-group{
    display: flex;
    gap: 5px
}

.pf-v5-c-input-group input{
    flex: 1;
}

.kc-social-grid {
    display:grid;
    grid-column-gap: 10px;
    grid-row-gap: 5px;
    grid-column-end: span 6;
    --pf-l-grid__item--GridColumnEnd: span 6;
}

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

.kc-social-section {
    text-align: center;
}

.kc-social-section hr{
    margin-bottom: 10px;
    opacity: 0.3;
}

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

@media (min-width: 768px) {
    #kc-container-wrapper {
        position: absolute;
        width: 100%;
    }

    .login-pf .container {
        padding-right: 80px;
    }

    #kc-locale {
        position: relative;
        text-align: right;
        z-index: 9999;
    }
}

@media (max-width: 767px) {

    #kc-header {
        padding-left: 15px;
        padding-right: 15px;
        float: none;
        text-align: left;
    }

    #kc-header-wrapper {
        font-size: 16px;
        font-weight: bold;
        padding: 20px 60px;
        color: #72767b;
        letter-spacing: 0;
    }

    #kc-form {
        float: none;
    }

    .login-pf .container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #kc-locale {
        position: absolute;
        width: 200px;
        top: 20px;
        right: 20px;
        text-align: right;
        z-index: 9999;
    }
}

@media (min-height: 646px) {
    #kc-container-wrapper {
        bottom: 12%;
    }
}

@media (max-height: 645px) {
    #kc-container-wrapper {
        padding-top: 50px;
        top: 20%;
    }
}

.card-pf form.form-actions .btn {
    float: right;
    margin-left: 10px;
}

.login-pf-page .card-pf p{
    color: var(--mi-text);
    opacity: 0.8;
}

#kc-form-buttons {
    margin-top: 20px;
}

.login-pf-page .login-pf-brand {
    margin-top: 20px;
    max-width: 360px;
    width: 40%;
}

.select-auth-box-arrow{
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.select-auth-box-icon{
    display: flex;
    flex: 0 0 2em;
    justify-content: center;
    margin-right: 1rem;
    margin-left: 3rem;
}

.select-auth-box-parent{
    border-top: 1px solid var(--pf-global--palette--black-200);
    padding-top: 1rem;
    padding-bottom: 1rem;
    cursor: pointer;
    text-align: left;
    align-items: unset;
    background-color: unset;
    border-right: unset;
    border-bottom: unset;
    border-left: unset;
}

.select-auth-box-parent:hover{
    background-color: #f7f8f8;
}

.select-auth-container {
    padding-bottom: 0px !important;
}

.select-auth-box-headline {
    font-size: var(--pf-global--FontSize--md);
    color: var(--pf-global--primary-color--100);
    font-weight: bold;
}

.select-auth-box-desc {
    font-size: var(--pf-global--FontSize--sm);
}

.select-auth-box-paragraph {
    text-align: center;
    font-size: var(--pf-global--FontSize--md);
    margin-bottom: 5px;
}

.card-pf {
    margin: 0 auto;
    box-shadow: 0 0 6px 4px rgba(0,0,0,0.1);
    padding: 0 20px;
    max-width: 500px;
    background-color: var(--mi-backgroundAlt2);
}

/*phone*/
@media (max-width: 767px) {
    .login-pf-page{
        padding: 0 20px;
    }
    .login-pf-page .card-pf {
        padding-top: 0;
        border-top: 0;
        box-shadow: 0 0;
    }

    .kc-social-grid {
        grid-column-end: 12;
        --pf-l-grid__item--GridColumnEnd: span 12;
    }
}

.login-pf-page .login-pf-signup {
    font-size: 15px;
    color: #72767b;
}
#kc-content-wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

.login-pf-page.login-pf-page-accounts {
    margin-left: auto;
    margin-right: auto;
}

.login-pf-page .btn-primary {
    margin-top: 0;
}

.login-pf-page .list-view-pf .list-group-item {
    border-bottom: 1px solid #ededed;
}

.login-pf-page .list-view-pf-description {
    width: 100%;
}

.form-horizontal  .form-group{
    margin-left: 0;
    margin-right: 0;
}

#kc-register-form .form-group:after, 
#kc-passwd-update-form .form-group:after,
#kc-reset-password-form .form-group:after,
#kc-update-profile-form .form-group:after,
#kc-update-email-form .form-group:after {
    content: "";
    display: table;
    clear: both;
}

#kc-form-login div.form-group:last-of-type,
#kc-register-form div.form-group:last-of-type,
#kc-update-profile-form div.form-group:last-of-type,
#kc-update-email-form div.form-group:last-of-type{
    margin-bottom: 0px;
}


.no-bottom-margin {
    margin-bottom: 0;
}

#kc-back {
    margin-top: 5px;
}

/* Recovery codes */
.kc-recovery-codes-warning {
    margin-bottom: 32px;
}
.kc-recovery-codes-warning .pf-c-alert__description p {
    font-size: 0.875rem;
}
.kc-recovery-codes-list {
    list-style: none;
    columns: 2;
    margin: 16px 0;
    padding: 16px 16px 8px 16px;
    border: 1px solid #D2D2D2;
}
.kc-recovery-codes-list li {
    margin-bottom: 8px;
    font-size: 11px;
}
.kc-recovery-codes-list li span {
    color: #6A6E73;
    width: 16px;
    text-align: right;
    display: inline-block;
    margin-right: 1px;
}

.kc-recovery-codes-actions {
    margin-bottom: 24px;
}
.kc-recovery-codes-actions button {
    padding-left: 0;
}
.kc-recovery-codes-actions button i {
    margin-right: 8px;
}

.kc-recovery-codes-confirmation {
    align-items: baseline;
    margin-bottom: 16px;
}

#certificate_subjectDN {
    overflow-wrap: break-word
}
/* End Recovery codes */
