html {
    height: 100%
}

body.signin {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* 确保视频在背景层 */
}

.signinpanel {
    width: 750px;
    margin: 10% auto 0;
    color: rgba(255, 255, 255, .95);
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    font-size: 24px;
    margin-top: 15%;
}

.signinpanel .logopanel {
    float: none;
    width: auto;
    padding: 0;
    background: 0
}

.signinpanel .signin-info ul {
    list-style: none;
    padding: 0;
    margin: 20px 0
}

.signinpanel .form-control {
    display: block;
    margin-top: 15px
}

.signinpanel .uname,
.signinpanel .pword {
    background: transparent !important; /* 强制设置背景透明 */
    border: 1px solid rgba(255, 255, 255, 0.5); /* 半透明白色边框 */
    color: white !important; /* 文字颜色 */
    padding-left: 40px; /* 给图标留空间 */
    position: relative;
    appearance: none; /* 移除浏览器默认样式 */
    transition: background-color 9999s ease-in-out 0s, color 0.2s ease-in-out; /* 解决 autofill 背景问题 */
}

/* 处理占位符颜色 */
.signinpanel .uname::placeholder,
.signinpanel .pword::placeholder {
    color: rgba(255, 255, 255, 0.7); /* 半透明占位符 */
}

/* 解决 Chrome 自动填充背景 */
.signinpanel .uname:-webkit-autofill,
.signinpanel .pword:-webkit-autofill {
    background: transparent !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: white !important; /* 确保文本颜色正常 */
    color: white !important;
    transition: background-color 9999s ease-in-out 0s, color 0.2s ease-in-out; /* 让 autofill 颜色过渡到透明 */
}

/* 处理 Firefox 的自动填充 */
.signinpanel .uname:-moz-autofill,
.signinpanel .pword:-moz-autofill {
    background: transparent !important;
    color: white !important;
}

/* 点击输入框时（focus）确保字体不会变黑 */
.signinpanel .uname:focus,
.signinpanel .pword:focus {
    background: transparent !important;
    color: white !important;
    -webkit-text-fill-color: white !important; /* 确保 autofill 文字仍然白色 */
}

/* 确保 autofill 之后 focus 时仍然透明 */
.signinpanel .uname:-webkit-autofill:focus,
.signinpanel .pword:-webkit-autofill:focus {
    background: transparent !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: white !important;
    color: white !important; /* autofill 状态下，点击输入框时字体仍然白色 */
}

.signinpanel .uname::before,
.signinpanel .pword::before {
    font-family: "FontAwesome";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.signinpanel .uname::before {
    content: "\f007"; /* fa-user */
}

.signinpanel .pword::before {
    content: "\f023"; /* fa-lock */
}

/* 输入框获取焦点时，边框高亮 */
.signinpanel .uname:focus,
.signinpanel .pword:focus {
    border-color: white;
    outline: none;
}

.signinpanel .code {
    background: #fff no-repeat 95% center;
    color: #333;
    margin: 0 0 15px 0
}

.signinpanel .btn {
    margin-top: 15px
}

.signinpanel form {
    background: rgba(255, 255, 255, .2);
    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: 3px;
    padding: 30px
}

.signup-footer {
    border-top: solid 1px rgba(255, 255, 255, .3);
    margin: 20px 0;
    padding-top: 15px
}

@media screen and (max-width: 768px) {
    .signinpanel, .signuppanel {
        margin: 0 auto;
        width: 380px !important;
        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: 320px) {
    .signinpanel, .signuppanel {
        margin: 0 20px;
        width: auto
    }
}

.checkbox-custom {
    position: relative;
    padding: 0 15px 0 25px;
    margin-bottom: 7px;
    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
}

.form-control, .form-control:focus, .has-error .form-control:focus, .has-success .form-control:focus, .has-warning .form-control:focus, .navbar-collapse, .navbar-form, .navbar-form-custom .form-control:focus, .navbar-form-custom .form-control:hover, .open .btn.dropdown-toggle, .panel, .popover, .progress, .progress-bar {
    box-shadow: none
}

.form-control {
    border-radius: 1px !important;
    padding: 6px 12px !important;
    height: 34px !important
}

.form-control:focus {
    border-color: #1ab394 !important
}

body .layer-ext-moon-msg[type="dialog"] {
    min-width: 100px !important
}

body .layer-ext-moon-msg {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 0
}

body .layer-ext-moon-msg .layui-layer-content {
    padding: 12px 25px;
    text-align: center
}