/*!
 * login-v2.css —— 登录页（严格按设计稿 企业.html 的格式实现）
 * =============================================================================
 * 设计稿用的是 Tailwind，这里把用到的 utility 逐个翻译成具名类，
 * 避免在生产环境引入 Tailwind CDN（外网依赖 + 体积）。
 *
 * 关键数值（与设计稿一一对应）：
 *   页面底色 #F4F7FC + 点阵网格 24px
 *   卡片 max-width 980 / 圆角 24px / min-height 550px / 12 列栅格（左 5 右 7）
 *   品牌区 渐变 135deg #1D4ED8 → #2563EB → #3B82F6
 *   输入框 背景 slate-50/70 · 描边 slate-200 · 圆角 12px · 上下 12px
 *   主按钮 背景 #2563EB · 圆角 12px · 上下 12px · 白字 600
 * ========================================================================== */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1E293B;
    -webkit-font-smoothing: antialiased;
}

/* 点阵背景 */
.lp-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #F4F7FC;
    background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
    overflow-x: hidden;
}

/* ==================== 顶部品牌条 ==================== */
.lp-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 0;
    display: flex;
    align-items: center;
    /* 左上角 logo 已移除，仅剩「返回首页」，靠右对齐 */
    justify-content: flex-end;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-brand-logo {
    height: 32px;
    width: auto;
    display: block;
}

.lp-brand-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #2563EB;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
    flex-shrink: 0;
}

.lp-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -.01em;
}

.lp-header-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #64748B;
}

.lp-header-links a {
    color: #64748B;
    text-decoration: none;
    transition: color .18s;
}

.lp-header-links a:hover {
    color: #2563EB;
}

/* ==================== 主卡片 ==================== */
.lp-main {
    width: 100%;
    max-width: 980px;
    margin: 32px auto;
    padding: 0 16px;
}

.lp-card {
    display: grid;
    grid-template-columns: 5fr 7fr;
    min-height: 550px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 16px 40px -6px rgba(29, 78, 216, .08),
        0 4px 16px -2px rgba(15, 23, 42, .04);
}

/* ==================== 左侧品牌视觉 ==================== */
.lp-visual {
    position: relative;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #3B82F6 100%);
    overflow: hidden;
}

/* 两团光晕 */
.lp-visual::before,
.lp-visual::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(48px);
}
.lp-visual::before {
    width: 288px;
    height: 288px;
    top: -80px;
    right: -64px;
    background: rgba(125, 211, 252, .20);
}
.lp-visual::after {
    width: 240px;
    height: 240px;
    bottom: -64px;
    left: -64px;
    background: rgba(49, 46, 129, .20);
}

.lp-visual-top,
.lp-visual-points,
.lp-visual-trust {
    position: relative;
    z-index: 1;
}

.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.lp-visual h1 {
    margin: 16px 0 0;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #fff;
}

.lp-visual-desc {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.75;
    color: #DBEAFE;
}

/* 卖点卡片 */
.lp-visual-points {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .20);
    backdrop-filter: blur(6px);
    transition: background .18s;
}

.lp-point:hover {
    background: rgba(255, 255, 255, .16);
}

.lp-point-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    color: #2563EB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.lp-point-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
}

.lp-point-desc {
    margin: 2px 0 0;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(219, 234, 254, .9);
}

/* 底部背书 */
.lp-visual-trust {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .20);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #DBEAFE;
}

.lp-visual-trust strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* ==================== 右侧表单区 ==================== */
.lp-panel {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.lp-panel-inner {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.lp-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -.01em;
}

/* Tab：下划线式 */
.lp-tabs {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    border-bottom: 1px solid #F1F5F9;
}

.lp-tab {
    padding: 0 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: #64748B;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color .18s, border-color .18s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.lp-tab:hover {
    color: #1E293B;
}

.lp-tab.active {
    color: #2563EB;
    font-weight: 700;
    border-bottom-color: #2563EB;
}

/* 表单 */
.lp-form {
    margin-top: 24px;
}

.lp-form .el-form-item {
    margin-bottom: 16px;
}

/* 输入框：外层容器模拟设计稿的灰底圆角框 */
.lp-input .el-input__inner {
    height: 46px;
    line-height: 46px;
    padding-left: 40px;
    background: rgba(248, 250, 252, .7);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    color: #0F172A;
    transition: background .18s, border-color .18s, box-shadow .18s;
}

.lp-input .el-input__inner::placeholder {
    color: var(--color-text-label);
}

.lp-input .el-input__inner:hover {
    border-color: #CBD5E1;
}

.lp-input .el-input__inner:focus {
    background: #FFFFFF;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

/* 前缀图标 */
.lp-input .el-input__prefix {
    left: 13px;
    line-height: 46px;
    color: var(--color-text-label);
    font-size: 15px;
}

/* 验证码按钮：去掉 append 的外挂感，做成框内右侧的胶囊按钮 */
/* Element 的 group 默认是 inline-table，input 变成 table-cell、append 被挤成 16px 宽，
   文字直接被裁掉。这里改成 block + 绝对定位，才能让按钮真正"浮"在框内右侧。 */
.lp-input.is-code,
.lp-input.is-code .el-input-group,
.lp-input.is-code .el-input-group--append {
    position: relative;
    display: block;
    width: 100%;
}

.lp-input.is-code .el-input__inner {
    width: 100%;
    padding-right: 112px;
    border-radius: 12px;
}

.lp-input.is-code .el-input-group__append {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: auto;
    white-space: nowrap;
    background: transparent;
    border: 0;
    padding: 0;
    z-index: 2;
}

.lp-input.is-code .el-input-group__append .el-input-group__append-inner,
.lp-input.is-code .el-input-group__append > div {
    display: flex;
    align-items: center;
}

.lp-input.is-code .el-input-group__append span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #2563EB;
    cursor: pointer;
    transition: background .18s, color .18s;
    white-space: nowrap;
}

.lp-input.is-code .el-input-group__append span:hover {
    background: #EFF6FF;
}

.lp-input.is-code .el-input-group__append span.sent {
    color: var(--color-text-label);
    cursor: default;
}

.lp-input.is-code .el-input-group__append span.sent:hover {
    background: transparent;
}

/* 校验错误 */
.lp-form .el-form-item.is-error .el-input__inner {
    border-color: #DC2626;
}

.lp-form .el-form-item__error {
    top: 48px !important;
    font-size: 12px;
    color: #DC2626;
    padding-top: 0;
}

/* 协议勾选 */
.lp-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-top: 4px;
    margin-top: 2px;
}

.lp-agree input {
    margin-top: 2px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid #CBD5E1;
    accent-color: #2563EB;
    cursor: pointer;
    flex-shrink: 0;
}

.lp-agree label {
    font-size: 12px;
    line-height: 1.7;
    color: #64748B;
    cursor: pointer;
}

.lp-agree a {
    color: #2563EB;
    text-decoration: none;
}

.lp-agree a:hover {
    text-decoration: underline;
}

/* 登录按钮 */
.lp-submit {
    width: 100%;
    padding: 12px 0;
    margin-top: 18px;
    border: 0;
    border-radius: 12px;
    background: #2563EB;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background .18s, transform .1s, box-shadow .18s;
    box-shadow: 0 1px 2px rgba(37, 99, 235, .2);
}

.lp-submit:hover {
    background: #1D4ED8;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, .4);
}

.lp-submit:active {
    background: #1E40AF;
    transform: translateY(1px);
}

/* 密码表单的辅助行（免登录 / 忘记密码） */
.lp-form-aux {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    padding-top: 4px;
}

.lp-form-aux label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748B;
    cursor: pointer;
}

.lp-form-aux a {
    color: #64748B;
    text-decoration: none;
    transition: color .18s;
}

.lp-form-aux a:hover {
    color: #2563EB;
}

/* 底部生态入口 */
.lp-links {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
}

.lp-links-register {
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lp-links-register:hover {
    text-decoration: underline;
}

.lp-links-forum {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid rgba(226, 232, 240, .8);
    color: #334155;
    font-weight: 500;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s;
}

.lp-links-forum:hover {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #2563EB;
}

.lp-links-forum em {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2563EB;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* ==================== 微信扫码 Tab 内容 ==================== */
.lp-wx {
    margin-top: 24px;
}

.lp-wx .wx-main {
    margin: 0;
}

.lp-wx .wx-main-img {
    margin: 0 0 16px;
}

.lp-wx .wx-qrcode {
    width: 176px;
    height: 176px;
}

/* 二维码尚未返回时的占位转圈 */
.lp-wx-loading {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #E2E8F0;
    border-top-color: #2563EB;
    animation: lp-rotate .7s linear infinite;
}

@keyframes lp-rotate {
    to { transform: rotate(360deg); }
}

/* 第三个 Tab 的微信图标 */
.lp-tab-wechat-ico {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: -2px;
}



/* 二维码失效/未绑定时的遮罩内容 */
.lp-wx-expired {
    text-align: center;
}
.lp-wx-expired-ico {
    display: block;
    font-size: 20px;
    color: #94A3B8;
    margin-bottom: 5px;
}
.lp-wx-expired-txt {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    color: #64748B;
    padding: 0 8px;
}
.lp-wx-expired-btn {
    display: inline-block;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #2563EB;
}

/* 微信扫码不可用时的降级提示 */
.lp-wx-error {
    padding: 36px 20px;
    text-align: center;
    background: #F8FAFC;
    border: 1px dashed #E2E8F0;
    border-radius: 16px;
}

.lp-wx-error-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.lp-wx-error-sub {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--color-text-label);
}

.lp-wx-error-btn {
    margin-top: 16px;
    padding: 9px 20px;
    border: 1px solid #2563EB;
    border-radius: 10px;
    background: #2563EB;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .18s;
}

.lp-wx-error-btn:hover {
    background: #1D4ED8;
}

/* ==================== 底部版权 ==================== */
.lp-footer {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-label);
    flex-wrap: wrap;
}

.lp-footer a {
    color: var(--color-text-label);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.lp-footer a:hover {
    color: #64748B;
}

.lp-footer-right {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

/* ==================== 微信扫码（保留原逻辑） ==================== */
.wx-main {
    margin: 28px auto;
    text-align: center;
}

.wx-title {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
}

.wx-main-img {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.wx-qrcode {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 176px;
    height: 176px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
}

.wx-qrcode-img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
}

.wx-main-tip {
    width: 165px;
}

.wx-main-msg {
    margin-bottom: 8px;
    font-size: 12px;
    color: #334155;
}

.wx-main-msg-green {
    color: var(--color-success);
    font-weight: 700;
    margin: 0 3px;
}

.wx-main-change {
    font-size: 12px;
    color: var(--color-text-label);
    margin-top: 6px;
}

.wx-main-click-login {
    color: #2563EB;
    cursor: pointer;
}

.login-refresh {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, .9);
    border-radius: 16px;
    cursor: pointer;
}

.login-refresh-img {
    width: 110px;
    height: 110px;
}

.login-finish {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-finish-img {
    width: 36px;
    height: 36px;
}

.login-finish-txt {
    margin-top: 12px;
    font-size: 12px;
    color: #334155;
    text-align: center;
    line-height: 1.7;
}

/* ==================== 验证码弹窗 ==================== */
.code-box {
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 24px 64px -16px rgba(15, 23, 42, .2) !important;
}

.code-box .el-dialog__header {
    padding: 20px 24px 0;
}

.code-box .el-dialog__close {
    color: var(--color-text-label);
    font-size: 16px;
}

.code-box .el-dialog__body {
    padding: 16px 24px 24px;
}

.code-box .title {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
}

.code-box .code {
    width: 100%;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    margin-top: 14px;
    cursor: pointer;
}

.code-box .tip {
    margin: 8px 0 14px;
    font-size: 12px;
    color: var(--color-text-label);
    text-align: right;
    cursor: pointer;
}

.code-box .tip:hover {
    color: #2563EB;
}

.code-box .input .el-input__inner {
    height: 44px;
    border-radius: 10px;
    border-color: #E2E8F0;
    font-size: 14px;
}

.code-box .submit {
    width: 100%;
    height: 44px;
    margin-top: 16px;
    border-radius: 10px;
    background: #2563EB;
    border-color: #2563EB;
    font-weight: 600;
    color: #FFFFFF !important;
}

.code-box .submit:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
    color: #FFFFFF !important;
}

/* 兜底：覆盖按钮内部 span、悬停/聚焦/按下/禁用等所有状态，确保文字恒为白色 */
.code-box .submit,
.code-box .submit span,
.code-box .submit:hover,
.code-box .submit:focus,
.code-box .submit:active,
.code-box .submit.is-disabled,
.code-box .submit:disabled {
    color: #FFFFFF !important;
}

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
    .lp-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .lp-visual {
        padding: 28px 24px;
    }
    .lp-visual-points {
        margin: 20px 0;
    }
    .lp-visual-trust {
        padding-top: 14px;
    }
    .lp-panel {
        padding: 28px 24px;
    }
    .lp-header {
        padding-top: 20px;
    }
    .lp-header-links {
        gap: 12px;
    }
    .lp-footer {
        justify-content: center;
        text-align: center;
    }
}


/* ==================== 免费注册弹窗 ====================
   内嵌注册页（iframe），弹窗本身只负责容器与标题栏 */
.reg-modal {
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
}
.reg-modal .el-dialog__header {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--color-border);
}
.reg-modal .el-dialog__headerbtn {
    top: 18px;
    right: 14px;
}
.reg-modal .el-dialog__body {
    padding: 0;
    background: var(--color-surface);
}
.reg-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: .3px;
}
.reg-modal-frame {
    display: block;
    width: 100%;
    height: 510px;   /* 表单实测约 474px，留出校验报错的空间 */
    border: 0;
}
