* {
    padding: 0;
    margin: 0;
    font-family: HelveticaNeue-Medium, HelveticaNeue;
}

html,
body {
    height: 100%;
    line-height: 1;
}

.flex-center {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.container {
    background: url("../images/bg.png")no-repeat;
    background-size: 100% 100%;
    color: #fff;
    height: 100%;
}

.login-box {
    margin: 0 auto;
    width: 480px;
    padding-top: 120px;
    text-align: center;
}

h1 {
    font-size: 36px;
    font-weight: 500;
    color: #FFFFFF;
}

.login-box h6 {
    margin: 20px 0;
    font-size: 14px;
    color: #CCCCCC;
    font-weight: 400;
    line-height: 21px;
}

.input-item {
    width: 480px;
    height: 50px;
    background: #FFFFFF;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
    color: #B3B3B3;
    line-height: 21px;
    padding-left: 42px;
    display: block;
    box-sizing: border-box;
    position: relative;
}

.input-item::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    left: 8px;
    top: 12px;
}

.input-item input {
    width: 100%;
    height: 100%;
    font-size: 18px;
    border: none;
    outline: none;
}

.input-item img {
    position: absolute;
    right: 16px;
    top: 13px;
}

.input-item input::-webkit-input-placeholder {
    color: #aab2bd;
    font-size: 14px;
}

#user::before {
    background: url('../images/user.png')no-repeat;
    background-size: 100% 100%;
}

#password::before {
    background: url('../images/password.png')no-repeat;
    background-size: 100% 100%;
}

.submit {
    width: 480px;
    height: 50px;
    background: #1877FF;
    border-radius: 8px;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 27px;
    cursor: pointer;
    outline: none;
}

.checkbox {
    cursor: pointer;
}

#isRemember {
    cursor: pointer;
    text-align: left;
    width: 170px;
    display: block;
    padding-left: 30px;
    margin-bottom: 16px;
    position: relative;
}

input[name="isRemember"]+span {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: #fff;
    border-radius: 3px;
    position: absolute;
    left: 0;
    top: -1px;
    border: 1px solid #1877FF;
}

input[name="isRemember"]:checked+span {
    background: #1877FF;
}

input[name="isRemember"]:checked+span::after {
    content: "✔";
    width: 18px;
    height: 18px;
    display: block;
    text-align: center;
}

.red-border {
    border: 1px solid #FF5756;
}

.error-tips {
    position: absolute;
    font-size: 10px;
    color: #FF5756;
    bottom: -22px;
    left: 0;
    font-size: 10px;
}

.loading {
    background: #80B4FF;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 0.5em;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    vertical-align: -10%;
    clip-path: polygon(0% 0%, 100% 0%, 100% 30%, 0% 30%);
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotatez(0deg);
    }

    to {
        transform: rotatez(360deg);
    }
}

.top-login-tips {
    width: 340px;
    height: 50px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    position: fixed;
    z-index: 9;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    display: none;
}

.top-login-tips p {
    font-size: 16px;
    font-family: HelveticaNeue;
    color: #FFFFFF;
    line-height: 20px;
    margin-left: 5px;
    opacity: 0.8;
}

.top-error {
    display: flex;
    top: 30px;
    animation: show 0.2s linear;
}

@keyframes show {
    from {
        top: 0;
    }

    to {
        top: 30px;
    }
}