
html {
    height: initial;
    min-height: 100%;
}

body.login {
    background-position: center top;
    background-image: url('https://knowledge.elementthree.com/wp-content/uploads/2023/03/Knowledge-site-login-background-V2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    height: initial;
    min-height: 100%;
}

body.login #login {
    display: flex;
    flex-direction: column;
    padding: 200px 0 120px;
    width: 90%;
}
body.login #login:after {
    background: url('https://knowledge.elementthree.com/wp-content/uploads/2021/11/Element-Three-logo.svg');
    background-repeat: no-repeat;
    background-size: contain;
    content: '';
    display: block;
    height: 100px;
    margin: 0 auto;
    max-width: 220px;
    position: absolute;
    top: 0;
    width: 100px;
}
body.login #login h1 {
    margin-bottom: 80px;
    order: 2;
}
body.login #login h1 a {
    background: none;
    color: #fff;
    font-family: Saol,serif;
    font-size: 58px;
    font-weight: 400;
    height: initial;
    line-height: 1.3em;
    pointer-events: none;
    text-indent: initial;
    text-align: center;
    width: 100%;
}
body.login #login form#loginform {
    background: none;
    border: 0;
    margin: 0 auto 20px;
    max-width: 320px;
    order: 7;
    padding: 0;
}


body.login:not(.show-login-button) div#mo_saml_button {
    opacity: 0;
    visibility: hidden;
}

body.login div#mo_saml_button {
    height: initial !important;
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
    opacity: 1;
    order: 5;
    transition: opacity 2s ease-in;
    visibility: visible;
}
body.login div#mo_saml_login_sso_button {
    background-color: #9ecccc;
    border: none;
    border-radius: 0;
    color: #2F4545!important;
    display: inline-flex !important;
    float: none;
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 2em;
    margin: 0 auto;
    max-width: 100%;
    padding: 22px 30px;
    text-transform: uppercase;
    width: initial !important;
}
body.login div#mo_saml_login_sso_button:hover {
    opacity: 0.8;
}
body.login div#mo_saml_login_sso_button img {
    display: none;
}
body.login div#mo_saml_login_sso_button + div {
    display: none;
}


body.login #login form#loginform p {
    background: #eaeaea;
    float: none;
    padding: 10px 10px 0;
}
    body.login label {
        color: #333;
        cursor: pointer;
        font-family: Saol,serif;
        font-weight: 400;
        margin-bottom: 6px;
    }

body.login #login form#loginform p.forgetmenot {
    padding: 0 10px;
}
body.login #login form#loginform p.submit {
    padding: 10px 10px;
}

body.login p.submit .button-primary {
    align-items: center;
    justify-content: center;
    background-color: #9ecccc;
    border: none;
    border-radius: 0;
    color: #2F4545!important;
    display: inline-flex !important;
    float: none;
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 2em;
    margin: 0 auto;
    max-width: 100%;
    padding: 12px 20px;
    text-align: center;
    text-transform: uppercase;
    width: 100% !important;
}

body.login #login form#loginform .user-pass-wrap {
    background: #eaeaea;
    padding: 0 10px;
}

body.login #nav {
    background: #eaeaea;
    box-sizing: border-box;
    display: flex;
    margin: 0 auto 20px;
    max-width: 320px;
    order: 10;
}
body.login #backtoblog {
    display: none;
}


p#login-message {
    background: #eaeaea;
    margin: 0 auto 60px;
    max-width: 300px;
    order: 6;
}
body.login #login_error {
    background: #eaeaea;
    order: 6;
    margin: 0 auto 30px;
    width: 300px;
}

body.login:not(.show-admin-login) #login form#loginform > *:not(#mo_saml_button), body.login:not(.show-admin-login) #nav {
    display: none;
}


body.login #login p.message {
    background: #eaeaea;
    order: 4;
}
form#lostpasswordform {
    background-color: #eaeaea;
    order: 5;
}




.login-show-admin-access {
    background: #eaeaea;
    bottom: 10px;
    position: fixed;
    right: 10px;
}
p#e3-admin-login {
    color: #333;
    cursor: pointer;
    font-family: Saol,serif;
    font-weight: 400;
    padding: 6px;
}


/* Responsive */
@media only screen and (max-width: 980px) {
    body.login #login {
        padding: 160px 0 120px;
    }
}



@media only screen and (max-width: 600px) {
    body.login #login {
        padding: 200px 0 120px;
    }
    body.login #login h1 {
        margin-bottom: 60px;
    }
    body.login #login h1 a {
        font-size: 40px;
    }
}
