﻿html {
    height: 100%;
}
.login {
    height: 100vh; /* 关键：设置全屏高度 */
    display: flex;
    justify-content: flex-end; /* 内容靠右 */
    align-items: center; /* 垂直居中 */
    background: url(../../image/washBackground.png) no-repeat center fixed;
    background-size: cover;
    margin: 0; /* 清除默认边距 */
}

.login-panel {
    width: 350px; /* 表单宽度 */
    margin: 0 5% 0 0; /* 右侧留白5% */
    margin-top: -200px; /* 负值向上移动，数值根据需求调整 */
}

    .login-panel .section {
        width: 100%;
        margin: 0; /* 清除旧margin */
    }

    .login-panel .form-control {
        display: block;
        margin-top: 20px
    }

    /*登录框：用户名图标*/
    .login-panel .uname {
        background: #fff url(../../image/user.png) no-repeat 95% center;
        background-size: 20px; /* 控制图标尺寸 */
        color: #333;
    }

    /*登录框：密码图标*/
    .login-panel .pword {
        background: #fff url(../../image/locked.png) no-repeat 95% center;
        background-size: 20px; /* 控制图标尺寸 */
        color: #333;
    }

    /*登录框：验证码样式(未使用)*/
    .login-panel .code {
        background: #fff no-repeat 95% center;
        background-size: 20px; /* 控制图标尺寸 */
        color: #333;
        margin: 0 0 15px 0;
        padding-left: 50px; /* 左边距腾出图标空间 */
    }

    /*登录框：确认按钮*/
    .login-panel .btn {
        margin-top: 30px
    }

    /*登录框表单*/
    .login-panel form {
        background: rgb(255 255 255 / 90%);
        border: 1px solid rgba(255,255,255,.3);
        -moz-box-shadow: 0 3px 0 rgba(12,12,12,.03);
        -webkit-box-shadow: 0 3px 0 rgba(12,12,12,.03);
        box-shadow: 0 3px 0 rgba(12,12,12,.03);
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
        border-radius: 20px;
        padding: 30px;
        width: 400px; /* 固定登录框宽度 */
        height: 300px;
        position: relative; /* 为错误提示提供定位基准 */
    }

    /*登陆框欢迎语样式*/
    .login-panel .welcome-message {
        color: #333;
        font-weight: bolder;
        font-size: 25px;
        margin-top: 0px;
        margin-bottom: 30px;
        text-align: center;
    }

/*登陆页面尾部(未使用)*/
.login-footer {
    border-top: solid 1px rgba(255,255,255,.3);
    margin: 20px 0;
    padding-top: 15px
}

/*弹出框里面文字的颜色*/
.layui-layer-content {
    color: #676a6c;
}

@media screen and (max-width:768px) {
    .login {
        justify-content: center; /* 内容居中 */
        -webkit-justify-content:center;
    }
    .login-panel {
        margin: 0 auto;
        width: 360px !important;
        padding: 20px
    }

        .login-panel .section {
            width: 100%;
            margin: 0 auto;
        }

        .login-panel form {
            width: 100%;
            height: 260px;
        }

    .login-footer, .form-control {
        margin-bottom: 10px
    }

    .login-panel .login-info ul {
        display: none;
    }
}

@media screen and (max-width:320px) {
    .login {
        justify-content: center; /* 内容居中 */
        -webkit-justify-content: center;
    }
    .login-panel {
        margin: 0 20px;
        width: auto
    }

        .login-panel .section {
            width: 100%;
            margin: 0 auto;
        }
        .login-panel form {
            width: 100%;
            height: 260px;
        }
}

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

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

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

    .checkbox-custom input[type="checkbox"]:checked + label:after {
        position: absolute;
        display: inline-block;
        font-family: 'Glyphicons Halflings';
        content: "\e013";
        top: 42%;
        left: 3px;
        margin-top: -5px;
        font-size: 11px;
        line-height: 1;
        width: 16px;
        height: 16px;
        color: #333
    }

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