﻿@charset "utf-8";
/* -----------H-ui前端框架-------------
* H-ui.login.css v2.2.1	后台登录页样式
* http://www.h-ui.net/
* Created & Modified by guojunhui
* Date modified 2015.6.5
*
* Copyright 2013-2017 北京颖杰联创科技有限公司 All rights reserved.
* Licensed under MIT license.
* http://opensource.org/licenses/MIT
*
*/
html, body{ height:100%}


.header,.footer{ position:absolute; left:0; right:0; width:100%; z-index:99}
/*.header{top:0; height:60px; background:#426374 url(../images/logo.png) no-repeat 0 center}*/
.header {
    top: 0;
    height: 60px;
    font-size: 32px;
    padding-left: 120px;
    color: white;
    background-color: #426374;
}
body {
    font-size: 14px;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #3283AC url(../images/admin-login-bg.jpg) no-repeat center fixed;
    background-size: cover;
    overflow-x: hidden; /* 禁止水平滚动 */
    margin: 0; /* 移除默认边距 */
}

.loginWraper {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
    /* 移除loginWraper中的背景设置 */
    overflow: hidden; /* 确保容器内容不会溢出 */
}
.loginWraper2{ position:absolute;width:100%; left:0; top:0; bottom:0; right:0; z-index:1; background:#3283AC url(../images/admin-login-bg.jpg) no-repeat center}
.loginBox {
    position: absolute;
    width: 90%; /* 改为相对宽度 */
    max-width: 617px; /* 保留最大宽度 */
    height: auto; /* 高度自适应 */
    background: url(../images/admin-loginform-bg.png) no-repeat;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* 使用transform居中，更可靠 */
    margin: 0; /* 移除margin负值 */
    padding: 38px 20px; /* 添加左右内边距 */
    box-sizing: border-box; /* 确保内边距不影响总宽度 */
}
@media (max-width:617px) {
	/*.loginbox{ width:100%; position:static; margin-top:0; margin-left:0;}*/
    .loginBox {
        width: 95%;
        padding: 20px 15px;
        background-size: cover; /* 确保背景图覆盖 */
    }
}
/* 添加更小屏幕的适配 */
@media (max-width:480px) {
    .header {
        font-size: 24px; /* 减小标题字体 */
        padding-left: 20px; /* 减少左侧内边距 */
        text-align: center; /* 标题居中 */
    }

    .loginBox .input-text {
        width: 100%; /* 输入框占满宽度 */
    }

    .btn {
        width: 100%; /* 按钮占满宽度 */
        padding: 10px 0; /* 增加按钮内边距 */
    }
}
    .loginBox .row {
        margin-top: 20px;
    }

        .loginBox .row .form-label .Hui-iconfont {
            font-size: 24px
        }

.loginBox .input-text {
    width: 360px;
    max-width: 100%; /* 添加最大宽度限制 */
    padding: 10px 15px; /* 优化内边距 */
    box-sizing: border-box; /* 确保宽度包含内边距 */
}

    @media (max-width:617px) {
        .loginBox .input-text {
            width: 100%; /* 小屏幕输入框占满宽度 */
        }
    }

    .yzm a {
        color: #426374;
        font-size: 12px
    }

    #span_msg {
        font-size: 14px;
        color: Red;
        line-height: 40px;
        height: 40px;
        margin-left: 10px;
        width: 160px;
        float: left
    }

    .hd_msg {
        font-size: 12px;
        color: #fff;
        height: 30px;
        z-index: 100;
        position: absolute;
        padding-left: 50px;
        padding-top: 5px
    }

        .hd_msg a {
            color: #fff
        }

            .hd_msg a:hover {
                color: #fff;
                text-decoration: underline
            }

    .footer {
        height: 46px;
        line-height: 46px;
        bottom: 0;
        text-align: center;
        color: #fff;
        font-size: 12px;
        background-color: #426374
    }

    #ie6-warning {
        background: #fff url(/jscss/demoimg/201006/warning.gif) no-repeat 3px center;
        position: absolute;
        top: 0;
        left: 0;
        font-size: 12px;
        color: #333;
        width: 97%;
        padding: 2px 15px 2px 23px;
        text-align: left
    }

        #ie6-warning a {
            text-decoration: none
        }