.wrapper {
    width: 500px;
    min-width: 280px;
    position: absolute;
    top: 20%;
    left: 30%;
    width: 40%;
}

body {
    background-image: url(../img/Login-background-updated.jpg);
    background-size: cover;
    height: 100%;
}

.hide {
    display: none !important;
}

h1 {
    margin-top: 10px;
    font-weight: 400;
    font-size: 30px;
    float: right;
    color: #393939;
    text-shadow: 0 1px 0 #fff;
}

.inner {
    width: 100%;
    margin: auto;
}

.logo {
    height: 40px;
    width: 100%;
    background: url(../img/logo.png) no-repeat;
    background-position: center;
}

.lg-body {
    margin-top: 10px;
    height: 430px;
    background: white;
    border-radius: 5px;
    border: 1px solid #d9d9d9;
}

#lg-head {
    height: 26px;
    margin: 10px 0;
    margin-right: 0;
    text-align: center;
}

    #lg-head p {
        font-size: 17px;
        font-weight: bold;
        font-family: 'Lato', sans-serif;
        color: #ec1569;
    }

.app-name {
    height: 40px;
    line-height: 40px;
    text-align: center;
    vertical-align: middle;
}

.separator {
    height: 1px;
    background: #d9d9d9;
    margin-top: 65px;
}

.login {
    padding-top: 5px;
    margin: 0px;
    width: 80% !important;
    margin-left: 10%;
    margin-top: 35px;
}

    .login ul li {
        margin-top: 14px;
        margin-bottom: 14px;
    }

#usr-field, #psw-field {
    height: 40px;
    position: relative;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'Lato', sans-serif;
    color: #415b64;
}

#usr-field-icon {
    display: block;
    width: 22px;
    height: 18px;
    background: url(../img/login-sprite.png) no-repeat 0 -28px;
    position: absolute;
    top: 8px;
    left: 8px;
}

#psw-field-icon {
    display: block;
    width: 22px;
    height: 20px;
    background: url(../img/login-sprite.png) no-repeat 0 -48px;
    position: absolute;
    top: 6px;
    left: 8px;
}

.input {
    width: 100%;
    height: 40px !important;
    background: white;
    border: none !important;
    box-shadow: none;
    padding: 0;
    text-indent: 20px !important;
    position: relative;
    font-size: 12px;
    font-family: 'Lato', sans-serif;
    color: #595959 !important;
    font-weight: bold;
}

#checkbox {
    margin: 16px 0 16px 4px;
}

.checkbox-text {
    color: #415b64;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Lato', sans-serif;
    float: left;
    margin-left: 3px !important;
}

/* .rememberme-checkbox styling */
.rememberme-checkbox {
    height: 40px;
    width: auto;
    float: left;
    line-height: 40px;
}

    .rememberme-checkbox input[type=checkbox] {
        -webkit-appearance: none;
        height: 15px;
        width: 15px;
        border: 1px solid #d9d9d9;
        border-radius: 2px;
        margin: 0;
        padding: 0;
        float: left;
        margin-top: 12.5px;
    }

        .rememberme-checkbox input[type=checkbox]:checked {
            -webkit-appearance: none;
            background: #415b64;
            border: 1px solid #415b64;
        }

            .rememberme-checkbox input[type=checkbox]:checked:after {
                content: '\2714';
                font-size: 10px;
                position: relative;
                color: white;
                bottom: 3px;
                left: 3px;
            }


/* end .rememberme-checkbox */

.link {
    color: #0645AD;
    text-decoration: underline;
    background-color: none;
    font-size: 14px;
}

.submit {
    width: 82px;
    height: 26px;
    border: 1px solid #444 !important;
    font-size: 11px !important;
    padding: 0;
    font-family: 'Raleway', sans-serif !important;
    border-radius: 3px !important;
}


#lost-psw {
    float: right;
    /*margin-top: -24px;*/
}

    #lost-psw a {
        color: #d3d3d3;
        font-size: 13px;
    }

label.error {
    width: 22px;
    height: 22px;
    display: block;
    clear: both;
    text-indent: -9999px;
    position: absolute;
    top: 6px;
    right: 6px;
    background: url(../img/login-sprite.png) no-repeat 0 -68px;
    border: none;
    float: none;
}

/* ADAPTIVE LAYOUT */

@media only screen and (min-width: 0px) and (max-width: 768px) {

    body {
        background-image: none;
        background: white;
    }

    .wrapper {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden;
    }

    .lg-body {
        height: 100%;
        padding: 0;
        margin: 0 !important;
        border: none;
        border-radius: 0px;
        position: absolute;
        top: 0;
        width: 100%;
        overflow: hidden;
    }



    fieldset, .logo {
        width: 100% !important;
        margin: 0px;
    }


    .login {
        width: 100% !important;
        margin: 0px;
        
    }

    .inner {
        width: 100%;
        margin: 0px;
        height: 100%;
        padding: 0;
    }

    .logo {
        background-size: contain;
        margin-top: 5px;
        min-height: 30px;
        height: 0px;
    }

        .logo h1 {
            display: none;
        }

    #lg-head {
        background: none;
        margin: 0;
        height: auto;
        width: 100%;
    }

        #lg-head p {
            padding: 2px 0 0 2px;
        }

    .separator {
        margin: 120px 0 0 0;
    }

    .rememberme-checkbox {
        width: 100%;
    }


    .submit {
        width: 100% !important;
        margin: 0px;
    }

    #liLoginSeparator {
        display: none;
    }

    .login ul li {
        display: inline-block;
        width: 100%;
    }

    .login ul {
        padding: 5%;
    }
}
