﻿html {
    height: 100%;
}

body {
    background: url(https://fmwork.blob.core.windows.net/res/images/work_login_page_bg.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover; /*just for ie*/
    zoom: 1;
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, 'Segoe UI', Helvetica, Arial,sans-serif, 'Sans Serif';
    color: #333;
    font-size: 12px;
}

form {
    height: 100%;
}

a {
    color: #414141;
}

table {
    border: 0;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

#right-bar {
    height: 100%;
    width: 518px;
    background-color: white;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    padding-left: 40px;
}

.right-bar-dummy-top {
    flex: 0 3 170px;
    width: 80%;
}

.right-bar-dummy-bottom {
    flex: 0 3 175px;
    width: 100%;
}

.loginInputArea {
    flex: 0 0 355px;
    width: 90%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-height: 300px;
}

.loginFail {
    flex: 0 0 auto;
    width: 100%;
    text-align: left;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    color: white;
    font-size: 12px;
    line-height: 16px;
    background-color: transparent;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.loginFail--active {
    background-color: #D52B1E; /* @login-error-msg-bg-color */
}

input.loginInput {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    padding-left: 13px;
    border-radius: 3px;
    border: 1px solid #59636B;
    transition: all .5s ease-in-out;
    transition: text-indent 0s;
    display: block;
    width: 100%;
    color: #999999; /* @grey-3-color */
    background-repeat: no-repeat;
    background-position: 10px center;
    background-color: white;
    box-sizing: border-box;
}

.loginInputPasswordWrapper {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

input.loginInput.password {
    flex: 0 0 36px;
    margin-top: 15px;
}

.loginOptions {
    flex: 0 36px;
}

input.loginInput.empty {
    color: #59636B;
}

input.loginInput:-moz-placeholder {
    color: #59636B;
}

input.loginInput:-ms-input-placeholder {
    color: #59636B;
}

input.loginInput::-webkit-input-placeholder {
    color: #59636B;
}

/* Can't put these together for some reason */
input.loginInput:-moz-autofill {
    text-indent: 0px;
}

input.loginInput:-ms-autofill {
    text-indent: 0px;
}

input.loginInput:-webkit-autofill {
    text-indent: 0px;
}

input.loginInput.username:focus,
input.loginInput.password:focus {
    border: 1px solid #3F9CF4;
}

.loginOptions {
    flex: 0 0 30px;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

/*----------------------------------------------------------
 * Start of fancy checkbox
-----------------------------------------------------------*/
.loginInputArea input[type="checkbox"] {
    display: none;
}

    .loginInputArea input[type="checkbox"] + label:before {
        font-family: fm-work;
        font-size: 10px; /* font-size + padding + border = 16px (design width/height is 16px) */
        content: 'a';
        color: transparent; /* Must be same colour as background color for #right-bar. See above. CA-8219 */
        margin: 0px 8px 0px 0px;
        display: inline; /* We use inline-block elsewhere in site but inline (plus padding instead of width/height) seems better - no jitter on initial check/uncheck */
        border: 1px solid #D8DADA;
        border-radius: 3px;
        box-sizing: border-box;
        padding-left: 2px;
        padding-right: 2px;
        padding-top: 2px;
        padding-bottom: 2px;
        font-weight: normal !important;
    }

    .loginInputArea input[type="checkbox"]:checked + label:before {
        color: #0277bd; /* @blue-new-btn-bg-color */
    }

    .loginInputArea input[type="checkbox"][disabled]:checked + label:before {
        color: #DCD7D7;
        opacity: 0.5;
        border-color: #cccccc;
    }

    .loginInputArea input[type="checkbox"] + label {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        margin: 0px 0px 0px 0px;
    }
/*----------------------------------------------------------
 * End of fancy checkbox
-----------------------------------------------------------*/

.loginOptions a.forgotPassword {
    font-size: 14px;
    color: #005EB8;
    text-decoration: none;
    font-weight: normal;
}

.loginOptions label {
    font-size: 14px;
    color: black;
    text-decoration: none;
}

.loginOptions a.forgotPassword:hover,
.loginOptions label.remember:hover {
    opacity: 0.8;
}

.loginOptions input {
    margin-right: 4px;
}

.btnLogin-wrapper {
    flex: 0 1 118px;
    min-height: 80px;
    width: 100%;
    display: flex;
}

.btnLogin {
    height: 48px;
    align-self: flex-end;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    border: none;
    color: white;
    background-color: black;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    line-height: 18px;
    font-family: -apple-system, 'Segoe UI', Helvetica, Arial,sans-serif, 'Sans Serif';
    box-shadow: 0 0 2px 0 rgba(0,0,0,0.14), 0 2px 2px 0 rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2);
}

    .btnLogin:hover {
        background-color: #004876;
    }

    .btnLogin:active {
        opacity: 0.85;
    }

.logo-img {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding-left: 80px;
}

    .logo-img img {
        width: 293px;
    }

.bottomlinks {
    flex: 0 0 60px;
    width: fit-content;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    color: #414141;
    font-size: 14px;
}

    .bottomlinks .bottomlinks__line {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 10px;
    }

    .bottomlinks a {
        text-decoration: none;
        font-weight: normal;
        margin-right: 5px;
        color: #005EB8;
    }

        .bottomlinks a:hover {
            opacity: 0.8;
        }

    .bottomlinks .loginPageVertBar {
        color: #D8DADA;
        margin-right: 5px;
    }

    .bottomlinks a img {
        width: 28px;
        height: 12.1px;
        margin-bottom: -2px;
    }

    .bottomlinks .bottomlinks__line--one {
        width: 111%;
    }                
input, textarea {
    color: #000;
}

.placeholder {
    color: #aaa;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 200px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    max-width: 700px;
    font-family: -apple-system, 'Segoe UI', Helvetica, Arial,sans-serif,'Sans Serif';
    border-radius: 5px;
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 45%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.close {
    font-weight: bold;
    line-height: 1;
}

    .close:hover {
        cursor: pointer;
    }

.modal-header {
    font-size: 28px;
    padding: 2px 16px;
    display: flex;
    justify-content: space-between;
}

    .modal-header h5 {
        font-size: 18px;
    }

.modal-body {
    padding: 2px 16px;
}

.modal-footer {
    padding: 2px 16px;
    color: white;
    display: flex;
    justify-content: flex-end;
}

.button {
    margin: 5px;
    height: 40px;
    border-radius: 100px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    width: 150px;
    border: 1px solid #999999;
    background-color: #FFF;
    line-height: 18px;
}

    .button:hover {
        opacity: 0.7;
    }

    .button:active {
        opacity: 0.85;
    }

.button-blue {
    background-color: #0277bd;
    color: white;
}

.textbox {
    height: 30px;
    border: 1px solid #d8d8d8;
    padding-left: 10px;
    border-radius: 4px;
    color: #414141;
    font-size: 13px;
    line-height: 20px;
    width: 98%;
}

/*LOGIN (Taken from app-style.css on the blob) ----------------------------------------- */

p {
    margin: 0 0 15px 0;
    line-height: 18px;
}

h5 {
    clear: both;
    display: block;
    color: #333;
    margin: 0px 0 10px 0;
    font-weight: bold;
    text-transform: uppercase;
}

.status {
    display: flex;
    justify-content: center;
    width: 300px;
    margin-top: 30px;
    margin-right: 30px;
    font-weight: bold;
}

.error-img-body {
    margin-top: 30px;
    margin-left: 50px;
}

error-img {
    border-width: 10px;
    height: 75px;
    margin-left: 20px;
}