/* Headbar */
div#kc-header-wrapper{
    text-transform: var( --title-text-transform );
    color: var( --title-text-color);
    font-weight: var( --title-font-weight );
}

/* Language selector */
#kc-locale {
    position: relative;
    text-align: right;
    z-index: 9999;
    display: inline-flex;
    justify-content: end;
}

#kc-locale-dropdown a {
    color: #4d5258;
    background: 0 0;
    padding: 0 15px 0 0;
    font-weight: 300;
}

#kc-locale-dropdown a#kc-current-locale-link {
    text-decoration: none;
    background-color: white;
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    min-width: 120px;
    justify-content: end;
    font-weight: 600;
}
#kc-locale-dropdown a#kc-current-locale-link:hover {
}

#kc-locale-dropdown a#kc-current-locale-link::after {
    content: "▾";
    margin-left: 4px;
}

#kc-locale-wrapper ul {
    display: none;
    position: absolute;
    background-color: #ededed;
    list-style: none;
    right: 0;
    top: 20px;
    min-width: 100px;
    padding: 2px 0;
    border: solid 1px #ededed;
    border-radius: 3px 0 3px 3px;
    min-width: 120px;
    box-shadow: 0 0 1px 1px #ededed;
}

#kc-locale-wrapper:hover ul {
    display: block;
    margin: 0;
    margin-top: 0.5rem;
}

#kc-locale-wrapper ul:hover + a#kc-current-locale-link{
    background-color: #ededed;
    box-shadow: 0 0 1px 1px #ededed;
    text-decoration: none;
}

div#kc-locale-dropdown {
    display: inline-flex;
}

li.kc-dropdown-item:hover {
    background-color: var( --active-highlight-bgcolor );
    color: var(--active-highlight-color);
}

li.kc-dropdown-item:hover a {
    color: var(--active-highlight-color) !important;
    text-decoration: none;
}



/* Input fields */

.pf-c-button.pf-m-block {
    display: block;
    width: 100%;
    padding: 1rem;
    line-height: 1rem;
}

.pf-c-form-control.pf-m-hover, .pf-c-form-control:hover {
    --pf-c-form-control--BorderBottomColor: var(--active-highlight-bgcolor);
}
.pf-c-form-control.pf-m-focus, .pf-c-form-control:focus{
    --pf-c-form-control--BorderBottomColor: var(--active-highlight-bgcolor);
}


.pf-c-button.pf-m-primary {
    color: var(--active-highlight-color);
    background-color: var(--active-highlight-bgcolor);
    line-height: 1.33rem;
    height: 3rem;
}
.pf-c-button.pf-m-primary:hover, .pf-c-button.pf-m-primary.pf-m-hover {
    color: var(--active-focused-color);
    background-color: var(--active-focused-bgcolor);
}


.pf-c-button.pf-m-control:hover::after, .pf-c-button.pf-m-control.pf-m-hover::after {
    --pf-c-button--m-control--after--BorderBottomColor: var(--active-focused-bgcolor);
    border-bottom-width: var(--pf-c-button--m-control--hover--after--BorderBottomWidth);
}


/* global links */

a:focus, a:hover {
    color: var(--active-focused-bgcolor);
    text-decoration: none;
}
a:hover {
    --pf-global--link--Color: var(--active-focused-bgcolor);
    --pf-global--link--TextDecoration: var(--pf-global--link--TextDecoration--hover);
}
a {
    color: var(--active-highlight-bgcolor);
    text-decoration: none;
}




.login-pf-page .login-pf-signup-section{
    text-align: center;
}

.login-pf-page .login-pf-signup-section .section-title{
    font-size: 15px;
}
.login-pf-page .login-pf-signup-section .section-description{
    font-size: 12px;
    font-style: italic;
}


/* Extra design for compliant SSO */
a#social-franceconnect-particulier{
    background: url(https://partenaires.franceconnect.gouv.fr/images/fc_bouton_alt2_v2.png) no-repeat left top;
    height: 56px;
    width: 224px;
    margin: 0 auto;
}
a#social-franceconnect-particulier:hover {
    background: url(https://partenaires.franceconnect.gouv.fr/images/fc_bouton_alt3_v2.png) no-repeat left top !important;
    height: 56px;
    width: 224px;
    margin: 0 auto;
}
a#social-franceconnect-particulier span{ display:none;}





/* Responsive View */
.login-pf {
    height: 100%;
    background: none;
    background-color: var( --active-background-color);
    background-image: var(--active-background-url);
    background-position: var( --active-background-position );
    background-repeat: no-repeat;
    background-size: auto;
    background-blend-mode: hard-light;
}

.login-pf body {
    background: unset;
    background-size: cover;
}


.login-pf-page {
    padding-top: 0px;
}



.login-pf-page .login-pf-page-header {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin: 0;
    padding-bottom: 5px;
    padding-top: 5px;
    height: 80px;
    background-size: auto;
    background-color: white;

    background-image: var(--active-logo-url);
    background-position: var(--active-logo-position);
    background-repeat: no-repeat;
    background-origin: inherit;
}

div#kc-header-wrapper {
    height: auto;
    margin: 20px;
    font-size: var( --active-title-full-size );
}


.login-pf-page .card-pf {
    padding: 20px 40px 30px 40px;
    margin:auto;
    min-width:550px;
    max-width:550px;
    margin-top: 50px;
    border-radius: 5px;
    box-shadow: 0px 0 15px 0px #000000c9, 0px 0 0px 12px inset #ffffffbd;
    border: 0;
    background-color: #ffffffe8;
}

.login-pf-page .login-pf-page-header {
    margin: 0;
    padding-bottom: 5px;
    padding-top: 5px;
    height: 80px;
    background-size: contain;
    background-color: var( --active-header-bgcolor );
}

@media (max-width: 768px){

    .login-pf-page .card-pf {
        padding: 20px 30px 30px 30px;
        margin: 0;
        margin-top: 20px;
        min-width: unset;
        max-width: unset;
    }

    .login-pf-page .login-pf-page-header {
        margin: 0;
        padding-bottom: 5px;
        padding-top: 5px;
        height: 120px;
        background-size: 150px;
        background-color: white;
        background-position: top center;
        align-items: flex-end;
        justify-content: center;
        background-color: var( --active-header-bgcolor );
    }

    div#kc-header-wrapper {
        height: auto;
        margin: unset;
        font-size: var( --active-title-smart-size );
    }

}
