#api {
    width: 100%;
}

api[data-name="Unified"] > .social,
#api[data-name="Unified"] > .divider {
    display: inline-block;
    vertical-align: top;
}

#api[data-name="Unified"] > .divider {
    text-align: left;
    width: 60px;
}

#api .social .intro::before {
    font-weight: bold;
}

#api .social .intro::after {
    display: block;
    font-size: 0.9em;
    margin-bottom: 15px;
}

[lang="fr-ca"] #api .social .intro::before {
    content: "Connectez-vous avec votre compte social";
}

[lang="en-us"] #api .social .intro::before {
    content: "Sign in with your social media account";
}

#api .options div {
    display: inline-block;
    margin-top: 7px;
    vertical-align: top;
}

#api .accountButton {
    background-color: #505050;
    background-repeat: no-repeat;
    border: 1px solid #fff;
    color: #fff;
    height: 34px;
    margin-right: 2px;
    padding-left: 30px;
    text-align: center;
    width: 135px;
    -moz-transition: background-color 1s ease 0s;
    -o-transition: background-color 1s ease 0s;
    -webkit-transition: background-color 1s ease 0s;
    transition: background-color 1s ease 0s;
}

#api #MicrosoftAccountExchange {
    background-color: #33A7F2;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAPFBMVEU1pe/////t+v4uoe5btvNixPVVwfUsoe9tyfXU7/y95vu24vrd9f5NtfLH6/ys3/o/sPE6qfD2/f+f2vnAysuQAAAAaElEQVQ4y93SORKAIAwFUEGCsoT1/nd1JkkDFhY24qt+8VMkk20lu6DAaVBOBsVKsuO8aYo08IqlYyxoRTQExfyKheRIgu5Yl4KoVhSUgNOhoiYRsmb5g2u+LtzXDNOhjKgoAZ9/8k8uZWsGqcIav5wAAAAASUVORK5CYII=);
}

    #api #MicrosoftAccountExchange:hover {
        background-color: #addbf9;
    }

#api #GoogleExchange {
    background-color: #DC4E41;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAb1BMVEXcTkH////cTD/bSj3ZQDLYOyzaRDbeV0vbSDrZPS/66Obyv7rsnpfpkorjcWfgZlvXOCr++Pj5393haFz88/L88fD67Or319T1zsv1zsrxuLPuqaLuqKLoi4LlfXTgYlbWMyTWMiPwtrHwta/fXVH/sCIIAAAAmElEQVQ4y+2RyQ7DIBBDMcwAIXvovqXb/39jRaX0AEmr5px3tSV7PGLhX6TVRFpN61l9zPNS6kn9gDcXO67zDnCnO2BCiNIyMtgKKJgyY2zQ68JEDtqju0nFTcOsxPUMw1GDDUqt+tY51/YNVlhvacTgEfCDIY0Q/lkBSg4RaUmmDo4/JdMzHy1Q2ejMeCj6PrXQP5+1MI8X0Y4HL4c826EAAAAASUVORK5CYII=);
}

    #api #GoogleExchange:hover {
        background-color: #F1B8B3;
    }

#api #LinkedInExchange {
    background-color: #0077B5;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAb1BMVEUAe7b///8AdrMklscAc7EAeLUAcbB5ttifzeMqmckAdLIAaqz7+/6PxeAShr0CgLkAba4nmMctksTv9Puw1eij0OWGvNtfrNJNo80YjMAeib/D4vGt3Oy82+yfzOOCvtyJvdx3tddirtI/ncoxmMj9KsrQAAAAw0lEQVQ4y9WSVw7DIAxAG8CkjJDVzO5x/zMWk0RNJaB/kfo+sGUeCMvstgI4J7F9aS5NxSLnTWLpZVDgexTqIiycUNBhgTxRyCKPYJ3dl7sITCkO+FyLXaWU310DscASOesf3ahWChGJ5cb4ASO5Joiu2EegWEmZa1c3yUwOHmHNuQgJup4CgF8YlKpcMhKvkNmb1REz6hdetsyziIBldv8lpH8ouGm28zQFCu2SOSAXlJYGYCgpFThEMFPm/zCryja8Acy7CRfMrcKPAAAAAElFTkSuQmCC);
}

    #api #LinkedInExchange:hover {
        background-color: #99CAE1;
    }

#api #FacebookExchange {
    background-color: #3B5B9C;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAaVBMVEU7W5z///85Wps3WJsiRo8xU5fw8vYyUpY0VZiAj70pS5OBkb0vUpb7+fwsTpTR1ud6irllerBPaqX09fnx8vfs7fSQoMZxg7VsgLNGY6FCX58ZP4v++/7r7vTZ3OupstGIlsFWcalDYaCK3qwDAAAAnklEQVQ4y+XQyw7CIBAFUBgc5VUoWGtb3/7/RyoYkyZAiSsXvdt7kstA/hRg/B0GpZ6byQ3Dw0NBaH+lMYRle3T0kwayACRdBrr/gnN+QtpQWv8cR4DswiUAjozlz4RdF8AmlnmwjaDQImoZwQkRedoToUS7D+ColGoTwQidx8oEQDMHN1MBva5MOL70SCHuE1TOhOpHrRt0FWAOP4IX8PsG2qEOR30AAAAASUVORK5CYII=);
}

    #api #FacebookExchange:hover {
        background-color: #B0BDD7;
    }

#api .divider {
    display: block !important;
    border-top: 1px solid #bdbdbd !important;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

    #api .divider > h2 {
        display: none;
    }


#api .localAccount .intro::after {
    display: block;
    font-size: 0.9em;
    margin-bottom: 15px;
}

#api[data-name="SelfAsserted"] > div:first-child::after {
    display: block;
    margin-bottom: 15px;
}

#api #attributeList > ul li:nth-child(2) {
    margin-top: 40px;
}

#api .error {
    color: #D50000;
    line-height: normal;
}

#api div.error.pageLevel > p,
#api label[for="logonIdentifier"] + div.error > p,
#api div.password-label + div.error > p {
    display: inline-block;
    margin-bottom: 2rem;
    white-space: unset;
    width: 100%;
    color: #D50000;
}

    #api div.error.pageLevel > p::before {
        position: absolute;
    }

    #api label[for="logonIdentifier"] + div.error > p::before,
    #api div.password-label + div.error > p::before {
        position: absolute;
    }

#api #requiredFieldMissing,
#api #passwordEntryMismatch,
#api #claimVerificationServerError,
#api #fieldIncorrect {
    display: block;
    margin-bottom: 2rem;
    position: relative;
}

    #api #claimVerificationServerError.errorText {
        border: 1px solid;
        margin: 10px 0;
        padding: 1rem;
        background-repeat: no-repeat;
        background-position: 10px center;
        background-color: white;
        border-radius: 3px;
    }

    #api #requiredFieldMissing::after,
    #api #passwordEntryMismatch::after,
    #api #fieldIncorrect::after,
    #api #claimVerificationServerError::after {
        color: #D50000;
        left: 0;
        position: absolute;
        top: 0;
    }

#api .buttons {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

    #api .buttons button {
        margin: 0;
        padding: .55rem .5rem 0.55rem;
        border: 0;
        height: unset;
        line-height: normal;
    }

        #api .buttons button:hover {
            background: transparent;
            border: none;
            -moz-box-shadow: 0 0 0;
            -webkit-box-shadow: 0 0 0;
            box-shadow: 0 0 0
        }

#api .attrEntry input[type=text] {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #bdbdbd !important;
    box-shadow: none;
}

    #api .attrEntry input[type=text]:focus {
        border-bottom: 2px solid #006CB7 !important;
    }

#api .verificationInfoText {
    line-height: normal;
    font-size: 97%;
}

    #api .verificationInfoText:after {
        content: '';
        display: block;
        height: 2rem;
    }

.attrEntry .helpText {
    display: none;
    padding-bottom: 10px;
    padding-top: 10px;
    color: #D50000;
    font-size: .9em;
}

.attrEntry.validate .error.itemLevel.show, .attrEntry.validate .helpText.show, .helpText.show {
    display: block;
}

.show {
    display: block !important;
}

.attrEntry input:invalid {
    outline: none;
    border-bottom: 2px solid red;
}

#api .entry-item {
    margin-bottom: 1rem;
    position: relative;
}

#api .attrEntry {
    margin-bottom: 10px;
    position: relative;
}

#api .entry-item + .entry-item {
    margin-bottom: 30px;
    padding: 0 0 5px;
}

#api .entry-item label,
#api .attrEntry label {
    white-space: nowrap;
    color: #BDBDBD;
    /* background-color: orange; */
}

/* Réseau sociaux désactivation des messages */
#api #attributeList > ul > li:first-child:last-child #email_intro {
    margin-bottom: 1rem;
}

#api #attributeList > ul > li:first-child:last-child #email_success {
    display: none !important;
}

/* Erreur création Compte*/
#api label[for="email"] + div.error,
#api label[for="reenterPassword"] + div.error,
#api label[for="newPassword"] + div.error {
    display: none;
}

#api label[for="email_ver_input"] {
    line-height: 30px;
    width: 100%;
}

#api label[for='email']::before {
    margin-top: 0;
    top: auto;
}

#api input + a.tiny {
    display: none;
}

#api input {
    background-color: #fff;
    color: #37424a;
    font-family: Open Sans, sans-serif;
    font-size: 1em;
    font-weight: 400;
    height: 40px;
    padding: 0 10px;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid #bdbdbd !important;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

    #api input:focus {
        border-bottom: 2px solid #006CB7 !important;
    }

    #api input::-webkit-input-placeholder {
        color: transparent;
    }

    #api input:-moz-placeholder {
        color: transparent;
    }

    #api input::-moz-placeholder {
        color: transparent;
    }

    #api input:-ms-input-placeholder {
        color: transparent;
    }

    #api input#email_ver_input[style="display: inline;"] {
        display: block !important;
        margin-bottom: 25px;
    }

#api #forgotPassword,
#api #createAccount {
    white-space: normal;
    width: 0;
}

#api #forgotPassword {
    color: #2988CC;
    position: absolute;
    left: 0;
    right: 0;
    width: auto;
    /* line-height: normal; */
    bottom: -1rem;
    /* top: 4.5rem; */
    /* line-height: normal; */
}

    #api #forgotPassword:hover {
        color: rgba(1, 136, 209, 0.5) !important;
    }

    #api #forgotPassword::before,
    #api #createAccount::before {
        bottom: -3rem;
        left: 0;
        position: absolute;
    }

    #api #forgotPassword:focus,
    #api #createAccount:focus {
        outline: none;
    }

        #api #forgotPassword:focus::before,
        #api #createAccount:focus::before {
            outline: 1px dotted #000;
        }

#api .buttons #next,
#api .buttons #email_ver_but_send,
#api .buttons #email_ver_but_verify,
#api .buttons #email_ver_but_resend,
#api .buttons #email_ver_but_edit,
#api .buttons #continue,
#api .buttons #cancel {
    color: #f0f0f0;
    display: inline-block;
    outline: none;
    overflow: hidden;
    white-space: unset;
}

#api .buttons #email_ver_but_verify,
#api .buttons #email_ver_but_resend,
#api .buttons #continue,
#api .buttons #cancel {
    flex: 0 0 calc(50% - 0.5rem);
}

#api .buttons #next,
#api .buttons #email_ver_but_send {
    width: 100%;
}

    #api .buttons #next::before,
    #api .buttons #email_ver_but_send::before,
    #api .buttons #email_ver_but_verify::before,
    #api .buttons #email_ver_but_resend::before,
    #api .buttons #email_ver_but_edit::before,
    #api .buttons #continue::before,
    #api .buttons #cancel::before {
        width: 100%;
        height: 2.25rem;
        line-height: 2.25rem;
        border-radius: 3px;
        background-color: #006CB7;
        box-sizing: border-box;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
        text-transform: uppercase;
        font-size: .875rem;
        position: absolute;
        -moz-transition: all .2s ease-in-out;
        -o-transition: all .2s ease-in-out;
        -webkit-transition: all .2s ease-in-out;
        transition: all .2s ease-in-out;
        white-space: nowrap;
    }

    #api .buttons #next::before,
    #api .buttons #email_ver_but_send::before,
    #api .buttons #email_ver_but_verify::before,
    #api .buttons #email_ver_but_edit::before,
    #api .buttons #continue::before {
        left: 0;
    }

    #api .buttons #next:hover:before {
        background-color: #2988CC;
    }

#api .buttons #email_ver_but_verify::before,
#api .buttons #email_ver_but_resend::before,
#api .buttons #continue::before,
#api .buttons #cancel::before {
    width: 48%;
}

#api .buttons #cancel::before {
    position: absolute;
    right: 0 !important;
    background-color: white;
    text-decoration: none !important;
}

#api .buttons #cancel:hover::before {
    background-color: #2988CC;
    color: white;
}
/* focus / survol */

#api .buttons #next:focus::before,
#api .buttons #email_ver_but_send:focus::before,
#api .buttons #email_ver_but_verify:focus::before,
#api .buttons #email_ver_but_resend:focus::before,
#api .buttons #email_ver_but_edit:focus::before,
#api .buttons #continue:focus::before {
    background-color: #37424a;
    border-color: #37424a;
    color: #fff;
    outline: none;
}

#api .buttons #cancel:focus::before {
    outline: 1px dotted #000;
}
/* disabled */

#api .buttons button:disabled {
    background-color: transparent;
    border: none;
}

#api .buttons #continue[disabled] {
    cursor: default;
    background-color: none !important;
    border-color: none !important;
}

    #api .buttons #continue[disabled],
    #api .buttons #continue[disabled]:focus {
        background-color: #a5a5a5 !important;
        border-color: #a5a5a5 !important;
    }

#api .buttons #next:hover,
#api .buttons #email_ver_but_send:hover,
#api .buttons #email_ver_but_verify:hover,
#api .buttons #email_ver_but_resend:hover,
#api .buttons #email_ver_but_edit:hover,
#api .buttons #continue:hover {
    background-color: #3C8FD4;
    border-color: #3C8FD4;
    color: #fff;
}

#api .buttons #email_ver_but_verify {
    /* margin-right: .5rem!important; */
}

#api .buttons #email_ver_but_resend {
    /* margin-left: .5rem!important; */
}

#api .buttons #cancel::before {
    color: #0073cf;
    position: absolute;
    text-decoration: underline;
}

#api .create {
    position: relative;
}

    #api .create > p {
        font-weight: 300;
    }

        #api .create > p::before {
            position: absolute;
        }

#api #createAccount {
    width: 100%;
    border-radius: 3px;
    background-color: #006CB7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    display: block;
    font-size: .875rem;
    text-align: center;
    margin-top: 1rem;
}

    #api #createAccount:hover {
        background-color: #2988CC !important;
    }

/******************************************** 
 BUTTONS 
*********************************************/

#api .buttons button,
#api #createAccount {
    width: 100%;
    border-radius: 3px;
    background-color: #006CB7;
    color: #fff;
    /*background-color: blue;*/
    line-height: 1.6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    display: block;
    font-size: .875rem;
    text-align: center;
    margin-top: 1rem;
    padding: .55rem .5rem 0.55rem
}

    #api .buttons button:hover,
    #api #createAccount:hover {
        background-color: #2988CC !important;
    }

#api .buttons #cancel {
    background-color: white;
    color: #0073cf;
    /* position: absolute; */
    right: 0;
}

    #api .buttons #cancel:hover {
        background-color: #2988CC;
        color: white;
    }

#api #verifying_blurb {
    display: none;
}

#resetpassword .buttons #email_ver_but_edit {
    height: 0px;
    width: 0px;
    display: none;
    padding: 0;
    line-height: 0;
    margin: 0;
    overflow: hidden;
}

/******************************************** 
 
*********************************************/

@media only screen and (max-width: 940px), only screen and (max-device-width: 1024px) {
    #api[data-name="Unified"] > .divider {
        display: block;
        text-align: center;
        width: 100%;
    }
}
/* = Mobile - Portrait */

@media only screen and (max-width: 500px), only screen and (max-device-width: 480px) and (orientation: portrait) {
    #api[data-name="Unified"] > .social, #api[data-name="Unified"] > .localAccount {
        width: 100%;
    }

    #api .attrEntry {
        margin-bottom: 0;
    }

    #api .buttons #email_ver_but_verify {
        margin-bottom: 0;
    }

    #api .buttons #email_ver_but_verify::before {
        bottom: 55px;
    }

    #api .buttons #email_ver_but_resend {
        margin-left: 0;
    }

    #resetpassword .buttons #email_ver_but_edit {
        height: unset;
        width: unset;
        display: unset;
    }

    #api #fieldIncorrect {
        margin-bottom: 80px;
    }

    #api .buttons {
        display: flex;
        flex-direction: column;
    }

    #api .buttons #email_ver_but_verify, #api .buttons #email_ver_but_resend, #api .buttons #continue, #api .buttons #cancel {
        width: 100%;
    }

    #api .buttons #email_ver_but_resend {
        right: unset;
        position: relative;
    }

    #api .buttons #cancel {
        background-color: white;
        color: #0073cf;
        position: relative;
        right: unset;
        display: block;
    }
}
