/* ============================================================
   order.tgxs.cc 管理后台登录页重设计 v4 —— 一比一复刻参考图
   参考: 用户提供的纯白居中登录页参考图 (2026-08-07)
   注入位置: public/tgxs-custom/css/login-redesign.css
   配套 JS: /tgxs-custom/js/login-redesign.js (标题区+占位符+文字)
   ============================================================ */

/* ---------- 1. 整页背景: 纯白 ---------- */
.box {
    background: #ffffff !important;
    background-image: none !important;
}

/* 隐藏左侧品牌区 */
.content .left {
    display: none !important;
}

/* ---------- 2. 内容居中 ---------- */
.content {
    max-width: none !important;
    justify-content: center !important;
    padding: 0 !important;
}

.content .right {
    width: 420px !important;
}

/* ---------- 3. 登录卡片 ---------- */
.content .right .loginContent {
    background: #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 24px 0 16px !important;
    min-height: auto !important;
    transform: scale(1) !important;
    text-align: left;
    position: relative;
    overflow: visible;
}

/* 去掉顶部装饰条 */
.content .right .loginContent::before {
    display: none !important;
}

/* ---------- 4. 标题区 (JS 注入) ---------- */
.tgxs-login-head {
    margin-bottom: 32px;            /* 标题→Tab 32px */
}

.tgxs-login-head h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 38px;
    margin: 0 0 6px 0;
}

.tgxs-login-head p {
    font-size: 14px;
    color: #8A9099;
    line-height: 22px;
    margin: 0;
}

/* ---------- 5. 登录方式 Tab ---------- */
.loginContent .tabs {
    display: flex !important;
    gap: 16px !important;           /* Tab 间距 16px */
    padding-bottom: 12px !important;
    margin-bottom: 24px !important; /* Tab→输入框 24px */
    border-bottom: 1px solid #EDEFF2;
}

.loginContent .tabs .tab {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    margin-right: 0 !important;
    padding-bottom: 12px !important;
    position: relative !important;
    cursor: pointer;
    transition: color 0.2s;
}

.loginContent .tabs .tab.active {
    color: #007AFF !important;
    font-weight: 500 !important;
}

.loginContent .tabs .tab.active::before {
    content: "" !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;         /* 下划线 2px */
    background: #007AFF !important;
    border-radius: 2px 2px 0 0;
}

/* ---------- 5b. 微信扫码登录互斥兜底 ---------- */
.loginContent:has(.l-login-code) .tabs {
    display: none !important;
}
.loginContent:has(.l-login-code) form.el-form {
    display: none !important;
}

/* 扫码区域样式: 居中显示 */
.l-login-code {
    text-align: center;
    padding: 20px 0 8px;
}
.l-login-code .wx-code {
    margin-top: 0 !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.l-login-code .wx-code iframe {
    max-width: 100% !important;
    border-radius: 8px;
}

/* ---------- 6. 表单控件 ---------- */
.loginContent .el-form {
    margin-top: 0;
}

.loginContent .el-form-item {
    margin-bottom: 16px !important; /* 账号→密码 16px */
}

.loginContent .el-input__wrapper {
    border-radius: 8px !important;
    border: 1px solid #DDDDDD !important;
    box-shadow: none !important;
    padding: 0 12px !important;
    height: 48px !important;
    background: #FFFFFF !important;
    transition: all 0.2s ease;
}

.loginContent .el-input__wrapper:hover {
    border-color: #B3C6E8 !important;
}

.loginContent .el-input__wrapper.is-focus {
    border-color: #007AFF !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.08) !important;
}

.loginContent .el-input__inner {
    height: 46px !important;
    line-height: 46px !important;
    font-size: 14px !important;
    color: #1A1A1A !important;
}

.loginContent .el-input__inner::placeholder {
    color: #999999 !important;
}

/* 输入框图标 */
.loginContent .iconfont {
    font-size: 16px !important;
    color: #999999 !important;
}

/* 密码眼睛图标 */
.loginContent .el-input__suffix {
    color: #999999 !important;
}

/* ---------- 7. 记住账号 / 忘记密码? ---------- */
.loginContent .el-row {
    height: 44px !important;        /* 密码→记住行 24px 节奏 */
    margin-top: 8px;
    margin-bottom: 20px;            /* 记住行→按钮 */
}

.loginContent .el-checkbox__label {
    color: #666666 !important;
    font-size: 14px !important;
}

.loginContent .el-checkbox__inner {
    border-radius: 4px !important;
    border-color: #CCCCCC !important;
}

.loginContent .el-button--primary.is-link,
.loginContent .el-button--primary.is-link:hover {
    color: #007AFF !important;
    font-size: 14px !important;
}

/* ---------- 8. 立即登录按钮 ---------- */
.loginContent .btnList {
    position: static !important;    /* 关键: 原系统是 absolute bottom:20px, 改为文档流内防止盖住记住行 */
    bottom: auto !important;
    margin-top: 24px;               /* 记住行→按钮 24px */
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.loginContent .btnList .but_bg {
    margin-top: 0 !important;       /* 覆盖 JS 写死的 margin-top:100px */
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: #007AFF !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
    transition: all 0.2s ease;
}

.loginContent .btnList .but_bg:hover {
    background: #0062CC !important;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.25) !important;
    transform: translateY(-1px);
}

/* 免费注册: 只作用于文本链接按钮 (is-link), 不影响实心按钮 (如重置密码页的确认修改, 无 is-link) */
.loginContent .btnList .m-t-defaul.is-link {
    margin-top: 24px !important;    /* 按钮→底部行 24px */
    color: #007AFF !important;
    font-size: 14px !important;
    width: auto !important;
    text-align: left !important;
    align-self: flex-start !important;
    padding: 0 !important;
}

/* 扫码图标: 圆形灰底, 移到底部右侧 */
.content .right .loginQrCode {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: auto !important;
    right: 0 !important;
    bottom: 8px !important;
    left: auto !important;
    z-index: 3;
    padding: 5px !important;
    box-sizing: border-box;
    background: #F5F5F5 !important;
    transition: background 0.2s;
}
.content .right .loginQrCode:hover {
    background: #E8E8E8 !important;
}

/* 底部行容器: 相对定位给扫码图标定位参考 */
.content .right .loginContent {
    padding-bottom: 48px !important; /* 给底部扫码图标留空间 */
}

/* ---------- 10. 版权 ---------- */
footer p {
    color: #C0C4CC !important;
    font-size: 12px !important;
}

footer a.copyName {
    color: #C0C4CC !important;
}
