﻿* {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    height: 100%;
    background: #fff url(../images/backgroud.png) 50% 50% no-repeat;
    background-size: cover;
}

.ds-login {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 430px;
    height: 550px;
    margin: -300px 0 0 -215px;
    border: 1px solid #fff;
    border-radius: 20px;
    overflow: hidden;
    z-index: 100;
}

.logo {
    margin: 30px auto 30px;
    text-align: center;
}

.ds-login .validation {
    position: absolute;
    margin-top: -40px;
    left: 50px;
}

.ds-text__line {
    display: table;
    padding: 0 20px;
    margin: 5px auto;
    width: 90%;
    white-space: nowrap;
    border-spacing: .2rem 0;
    color: #eee;
}

    .ds-text__line:before, .ds-text__line:after {
        content: "";
        display: table-cell;
        width: 50%;
        background: -webkit-linear-gradient(#ccc, #ccc) repeat-x left center;
        background: linear-gradient(#ccc, #ccc) repeat-x left center;
        background-size: 0.1rem 0.1rem;
    }

.form-item {
    position: relative;
    width: 360px;
    margin: 0 auto;
    padding: 10px 0;
    /*        padding-bottom: 30px;*/
}

    .form-item.extern button {
        font-size: inherit;
    }

    .form-item input {
        width: 288px;
        height: 48px;
        padding-left: 70px;
        border: 1px solid #fff;
        border-radius: 25px;
        font-size: 18px;
        color: #fff;
        background-color: transparent;
        outline: none;
    }

    .form-item button {
        width: 360px;
        height: 50px;
        border: 0;
        border-radius: 25px;
        font-size: 18px;
        color: #1f6f4a;
        outline: none;
        cursor: pointer;
        background-color: #fff;
        opacity: 0.9;
    }

        .form-item button:hover {
            /*            background-color: #dd3;*/
            opacity: 1;
        }

.form-item__wechat {
    /*    display: inline-block;*/
    width: 360px;
    height: 50px;
    border: 0;
    border-radius: 25px;
    font-size: 18px;
    color: #1f6f4a;
    outline: none;
    cursor: pointer;
    /*    background-color: #fff;*/
    opacity: 0.9;
/*    margin-top: 20px;*/
    background: url(../images/weixin.png) no-repeat #fff;
    background-size: 30px;
    background-position: 20px 10px;
    text-align: center;
    overflow: hidden;
    line-height: 50px;
}

    .form-item__wechat:hover {
        opacity: 1;
        cursor: pointer;
    }

/*.form-item__wechat--text {
    text-align: center;
    width: 80%;
}*/

.form-item-checkbox {
    position: relative;
    margin: 0 auto;
    margin-top: 10px;
    padding-bottom: 10px;
}

    .form-item-checkbox label {
        padding-left: 50px;
        color: #fff;
        font-size: 16px;
    }

    .form-item-checkbox input {
        width: 20px;
        height: 20px;
        vertical-align: middle;
        padding-right: 10px;
    }

.username {
    background: url(../images/emil.png) 20px 14px no-repeat;
}

.password {
    background: url(../images/password.png) 23px 11px no-repeat;
}

.tip {
    display: none;
    position: absolute;
    left: 20px;
    top: 52px;
    font-size: 14px;
    color: #f50;
}

.reg-bar {
    width: 360px;
    margin: 20px auto 0;
    font-size: 14px;
    overflow: hidden;
}

    .reg-bar a {
        color: #fff;
        text-decoration: none;
    }

        .reg-bar a:hover {
            text-decoration: underline;
        }

    .reg-bar .reg {
        float: left;
    }

    .reg-bar .forget {
        float: right;
    }

.ds-login ::-webkit-input-placeholder {
    font-size: 18px;
    line-height: 1.4;
    color: #ddd;
}

.ds-login :-moz-placeholder {
    font-size: 18px;
    line-height: 1.4;
    color: #ddd;
}

.ds-login ::-moz-placeholder {
    font-size: 18px;
    line-height: 1.4;
    color: #ddd;
}

.ds-login :-ms-input-placeholder {
    font-size: 18px;
    line-height: 1.4;
    color: #ddd;
}

@media screen and (max-width: 500px) {
    * {
        box-sizing: border-box;
    }

    .ds-login {
        position: static;
        width: auto;
        height: auto;
        margin: 0 30px;
        border: 0;
        border-radius: 0;
    }

    .logo {
        margin: 50px auto;
    }

    .form-item {
        width: auto;
    }

        .form-item input, .form-item button, .reg-bar {
            width: 100%;
        }

        .form-item.extern {
            display: none;
        }
}

.footer {
    position: absolute;
    bottom: 20px;
    /*    margin: 2em 0;*/
    width: 100%;
    text-align: center;
}

    .footer p {
        color: #fff;
    }


/* 扫码页面 */
.overbox {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 430px;
    height: 550px;
    margin: -300px 0 0 -215px;
    border: 1px solid #fff;
    border-radius: 20px;
    overflow: inherit;
    background-color: #fff;
    z-index: 101;
    display: none;
}

    .overbox .login-box-msg {
        position: relative;
        padding: 20px 40px;
        /*        text-align: center;*/
        font-size: 1.5em;
    }

    .overbox .barcode {
        position: relative;
        padding: 15px;
    }



/* Close */
.close {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    overflow: hidden;
    cursor: pointer;
}

    .close:hover::before,
    .close:hover::after {
        background: #1ebcc5;
    }

    .close::before,
    .close::after {
        content: "";
        position: absolute;
        height: 2px;
        width: 100%;
        top: 50%;
        left: 0;
        margin-top: -1px;
        background: #000;
    }

    .close::before {
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .close::after {
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
