/* CSS变量定义 */
:root {
    --primary-color: #589203;
    --text-color: #666;
    --white: #fff;
}

/* 基础样式 */
body {
    margin: 0;
    background: url(../Images/bg_ui@2x.png) no-repeat;
    background-size: cover;
}

/* 清除浮动类 */
.clear {
    clear: both;
    width: 100%;
    background-color: var(--white);
    font-size: 0;
    overflow: hidden;
}

/* Logo区域 */
.logo {
    width: 100%;
    padding: 10px 10%;
    background: var(--white);
    margin: 0 auto;
    box-sizing: border-box;
}

    .logo img {
        width: 25%;
        display: block;
    }

/* 主容器 */
.outer {
    width: 80%;
    height: 75%;
    overflow: hidden;
    margin: 3.5% auto 0;
    background: var(--white);
    border-radius: 5px;
}

    .outer::after {
        content: "";
        display: table;
        clear: both;
    }

/* 登录图片区域 */
.login_img {
    width: 70%;
    float: left;
    height: 100%;
}

    .login_img img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

/* 登录表单区域 */
.login_wrap {
    width: 30%;
    float: left;
    padding: 70px 2% 20px 3%;
    box-sizing: border-box;
    height: 100%;
}

    .login_wrap h2 {
        font-size: 18px;
        color: var(--text-color);
        text-align: center;
        font-weight: normal;
        margin: 0 0 20px 0;
    }

/* 输入框容器 */
.first, .second {
    position: relative;
    margin-top: 18px;
}

    /* 账号和密码输入框 */
    .first input,
    .second input[type="password"] {
        width: 95%;
        height: 40px;
        padding-left: 10px;
        box-sizing: border-box;
        border: 1px solid #ddd;
        border-radius: 3px;
        font-size: 14px;
        transition: border-color 0.2s ease;
    }

        .first input:focus,
        .second input[type="password"]:focus {
            outline: none;
            border-color: var(--primary-color);
        }

    /* 验证码图片 */
    .second img {
        width: 46%;
        height: 46px;
        float: left;
        margin-right: 4%;
    }

    /* 验证码输入框 */
    .second input[id="txtCaptcha"] {
        width: 45% !important;
        height: 40px;
        padding-left: 10px;
        box-sizing: border-box;
        float: left;
        border: 1px solid #ddd;
        border-radius: 3px;
        font-size: 14px;
        transition: border-color 0.2s ease;
        text-align: center;
    }

        .second input[id="txtCaptcha"]:focus {
            outline: none;
            border-color: var(--primary-color);
        }

    /* 验证消息样式 */
    .first span, .second span {
        position: absolute;
        color: red;
        font-size: 16px;
        font-weight: bold;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 1;
    }

/* 登录按钮 */
#btnLogin,
.third input[type="submit"],
.third input[type="button"],
input[id*="btnLogin"] {
    background: var(--primary-color) !important;
    border: 0 !important;
    color: var(--white) !important;
    height: 50px !important;
    font-size: 18px !important;
    width: 95% !important;
    cursor: pointer !important;
    margin: 0 !important;
    border-radius: 3px !important;
    transition: background-color 0.2s ease !important;
}

    #btnLogin:hover,
    .third input[type="submit"]:hover,
    .third input[type="button"]:hover,
    input[id*="btnLogin"]:hover {
        background: #4a7a02 !important;
    }

/* 第三部分容器 */
.third {
    margin-top: 22px;
    margin-left: 0;
    margin-bottom: 4px;
    font-family: "Microsoft YaHei", "微软雅黑", "宋体", sans-serif;
    font-size: 12px;
    width: 100%;
    overflow: hidden;
}

    .third div {
        width: 100%;
    }

/* 段落文本 */
.login_wrap p {
    text-align: center;
    line-height: 24px;
    padding: 10px 0 0;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 12px;
}
