/* ===== 登录页面 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    width: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: #f5f3ef;
    -webkit-font-smoothing: antialiased;
}

/* ----- 整体布局 ----- */
.login-box {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
}

/* ----- 左侧品牌区 ----- */
.banner {
    width: 42%;
    min-height: 100vh;
    background: url(https://oss.zazhicom.cn/local/20260602/5948259786022784d778b6b5f720d3fe.png) center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 品牌内容 */
.banner-content {
    text-align: center;
    z-index: 1;
    padding: 40px;
    position: relative;
}

.banner .logo-img {
    width: 160px;
    height: auto;
    margin-bottom: 28px;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,.3));
}

.banner .divider-line {
    width: 50px;
    height: 2px;
    background: rgba(233,51,35,.6);
    margin: 0 auto 24px;
    border-radius: 1px;
}

.banner .slogan {
    font-size: 15px;
    color: rgba(255,255,255,.55);
    letter-spacing: 3px;
    line-height: 2;
    font-weight: 300;
}

/* ----- 右侧表单区 ----- */
.login-content-box {
    width: 58%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: #faf9f7;
}

/* 返回首页 */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
    text-decoration: none;
    letter-spacing: 1px;
    margin-bottom: 16px;
    transition: all .3s;
}
.back-home i {
    font-size: 15px;
}
.back-home:hover {
    color: #e93323;
    transform: translateX(-3px);
}

.login-form {
    width: 100%;
    max-width: 440px;
    background: #fff;
    padding: 50px 48px 40px;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,.04), 0 8px 48px rgba(0,0,0,.05);
}

/* 标题区 */
.form-title {
    text-align: center;
    margin-bottom: 36px;
}
.form-title h2 {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.form-title p {
    font-size: 12px;
    color: #bbb;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ----- Tab 切换 ----- */
.login_tab {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
    position: relative;
}
.login_tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 280px;
    height: 1px;
    background: #eee;
}
.login_label {
    font-size: 15px;
    color: #bbb;
    cursor: pointer;
    padding-bottom: 14px;
    position: relative;
    z-index: 1;
    transition: all .3s;
    letter-spacing: 2px;
    user-select: none;
}
.login_label:hover { color: #999; }
.label_active {
    color: #1a1a1a !important;
    font-weight: 600;
}
.label_active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e93323;
    border-radius: 1px;
}

/* ----- 表单容器 ----- */
.login_form_box, .reg_form_box {
    width: 100%;
    text-align: center;
}

/* ----- 输入框组 ----- */
.form_input_div {
    margin-bottom: 20px;
    position: relative;
}

.form_input {
    width: 100%;
    height: 50px;
    padding: 0 44px 0 16px;
    border: 1px solid #e8e4de;
    border-radius: 10px;
    background: #faf9f7;
    font-size: 14px;
    color: #333;
    transition: all .3s;
    letter-spacing: .5px;
}
.form_input:focus {
    outline: none;
    border-color: #e93323;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(233,51,35,.06);
}
.form_input::placeholder { color: #c0bfbd; }
.form_input:hover { border-color: #d5d0c8; }

/* 输入框图标 */
.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 18px;
    pointer-events: none;
    transition: color .3s;
}
.form_input:focus ~ .input-icon,
.form_input_div:focus-within .input-icon {
    color: #e93323;
}

/* ----- 验证码行 ----- */
.form_input_code_div {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}
.form_input_code_div .form_input {
    flex: 1;
}

.code {
    height: 50px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid #e8e4de;
    border-radius: 10px;
    color: #e93323;
    font-size: 13px;
    cursor: pointer;
    transition: all .3s;
    white-space: nowrap;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.code:hover {
    background: #e93323;
    color: #fff;
    border-color: #e93323;
}

/* ----- 提交按钮 ----- */
.user_login_submit {
    width: 100%;
    height: 50px;
    background: #e93323;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    letter-spacing: 6px;
    cursor: pointer;
    transition: all .3s;
    margin-top: 6px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}
.user_login_submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .5s;
}
.user_login_submit:hover {
    background: #d4281a;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(233,51,35,.25);
}
.user_login_submit:hover::before { left: 100%; }
.user_login_submit:active { transform: translateY(0); }

/* ----- 底部链接 ----- */
.login-tool {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    font-size: 13px;
}
.login-tool a {
    color: #999;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color .3s;
    position: relative;
}
.login-tool a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e93323;
    transition: width .25s;
}
.login-tool a:hover {
    color: #e93323;
}
.login-tool a:hover::after { width: 100%; }

/* ----- 协议勾选 ----- */
.user_word {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    text-align: left;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}
.user_word input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #e93323;
    cursor: pointer;
}
.user_word a {
    color: #e93323;
    text-decoration: none;
    transition: color .2s;
}
.user_word a:hover { color: #c02020; text-decoration: underline; }

/* ----- 底部版权 ----- */
.footer {
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    color: #c0bfbd;
    letter-spacing: .5px;
}
.footer a {
    color: #999;
    text-decoration: none;
    transition: color .2s;
}
.footer a:hover { color: #e93323; }

/* ----- 响应式 ----- */
@media (max-width: 992px) {
    .banner { width: 38%; }
    .banner .logo-img { width: 130px; }
    .banner .slogan { font-size: 13px; letter-spacing: 2px; }
    .banner-content { padding: 30px; }
}

@media (max-width: 768px) {
    .login-box { flex-direction: column; }
    .banner {
        width: 100%;
        min-height: auto;
        padding: 50px 20px 40px;
    }
    .banner .logo-img { width: 110px; margin-bottom: 20px; }
    .banner .slogan { font-size: 13px; letter-spacing: 2px; }
    .banner .divider-line { margin-bottom: 16px; }
    .banner-content { padding: 20px; }

    .login-content-box {
        width: 100%;
        padding: 0 20px 40px;
        background: #faf9f7;
    }
    .login-form {
        margin-top: -24px;
        padding: 36px 28px 30px;
        border-radius: 14px;
        box-shadow: 0 2px 20px rgba(0,0,0,.06);
    }
    .form-title h2 { font-size: 22px; }
    .login_tab { gap: 30px; }
    .login_label { font-size: 14px; }
    .form_input { height: 46px; font-size: 13px; padding: 0 40px 0 14px; }
    .code { height: 46px; font-size: 12px; padding: 0 14px; }
    .user_login_submit { height: 46px; font-size: 15px; }
}

/* 修复 layer 弹窗重复关闭按钮 */
.layui-layer-setwin .layui-layer-close {
    display: none;
}
.layui-layer-setwin .layui-layer-close2 {
    width: 30px !important;
    height: 30px !important;
}
