html {
    min-height: 100%;
}

body.signin {
    min-height: 100%;
    margin: 0;
    background: #768a83 url(../img/login-background-optimized.jpg) no-repeat center fixed;
    background-size: cover;
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.signinpanel {
    width: 750px;
    max-width: calc(100% - 40px);
    margin: 10vh auto 0;
    color: rgba(255, 255, 255, 0.96);
}

.signinpanel .logopanel {
    float: none;
    width: auto;
    padding: 0;
    background: transparent;
}

.signinpanel .signin-info ul {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.signinpanel .signin-info li {
    margin-bottom: 7px;
}

.signinpanel .signin-info li::before {
    content: "›";
    display: inline-block;
    width: 18px;
    font-weight: 700;
}

.signinpanel .form-control {
    display: block;
    height: 42px !important;
    margin-top: 15px;
    padding: 8px 12px !important;
    border-radius: 3px !important;
    box-shadow: none;
}

.signinpanel .form-control:focus {
    border-color: #168d76 !important;
    box-shadow: none;
}

.signinpanel .uname {
    color: #333;
    background: #fff url(../img/user.png) no-repeat 95% center;
}

.signinpanel .pword {
    color: #333;
    background: #fff url(../img/locked.png) no-repeat 95% center;
}

.signinpanel .code {
    margin: 0 0 15px;
    color: #333;
    background: #fff no-repeat 95% center;
}

.signinpanel .btn {
    height: 42px;
    margin-top: 15px;
}

.signinpanel form {
    padding: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    box-shadow: 0 3px 0 rgba(12, 12, 12, 0.03);
}

.signup-footer {
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.m-b {
    margin-bottom: 15px;
}

.m-t {
    margin-top: 15px;
}

.m-t-md {
    margin-top: 20px;
}

.no-margins {
    margin: 0;
}

label.error {
    position: inherit;
    display: block;
    margin-top: 6px;
    color: #fff;
    font-weight: 600;
}

.checkbox-custom {
    position: relative;
    display: inline-block;
    margin-bottom: 7px;
    padding: 0 15px 0 25px;
}

.checkbox-custom input[type="checkbox"] {
    position: absolute;
    top: 50%;
    left: 3px;
    z-index: 2;
    margin: -6px 0 0;
    cursor: pointer;
    opacity: 0;
}

.checkbox-custom label::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 18px;
    height: 17px;
    margin-top: -9px;
    content: "";
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 2px;
}

.checkbox-custom input[type="checkbox"]:checked + label::after {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    color: #333;
    font-size: 12px;
    line-height: 16px;
    content: "✓";
}

.checkbox-custom label {
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

body .layer-ext-moon-msg[type="dialog"] {
    min-width: 100px !important;
}

body .layer-ext-moon-msg {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border: 0;
}

body .layer-ext-moon-msg .layui-layer-content {
    padding: 12px 25px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .signinpanel,
    .signuppanel {
        width: auto !important;
        max-width: 380px;
        margin: 0 auto;
        padding: 20px;
    }

    .signinpanel form {
        margin-top: 20px;
    }

    .signup-footer,
    .signuppanel .form-control {
        margin-bottom: 10px;
    }

    .signup-footer .pull-left,
    .signup-footer .pull-right {
        float: none !important;
        text-align: center;
    }

    .signinpanel .signin-info ul {
        display: none;
    }
}

@media screen and (max-width: 360px) {
    .signinpanel,
    .signuppanel {
        width: auto !important;
        margin: 0 12px;
        padding: 12px 0;
    }

    .signinpanel form {
        padding: 22px;
    }
}
