/* ======================================================================
   20261023a 登录页皮肤（后台 / 商户中心通用结构）
   用法：<body class="lp-body"> 内使用 .lp-wrap > .lp-side-form / .lp-side-show
   不依赖外部 CDN，纯 CSS 绘制背景与装饰
   ====================================================================== */

body.lp-body {
    --lp-accent: #5b68f5;
    --lp-accent-2: #17c692;
    --lp-deep: #070b18;
    --lp-ink: #16203a;
    --lp-muted: #5d6884;
    --lp-field: #f5f8fd;
    --lp-border: #e2e8f6;
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--lp-ink);
    background:
        radial-gradient(1100px 620px at 8% -10%, rgba(99, 102, 241, .22), transparent 60%),
        radial-gradient(900px 560px at 96% 110%, rgba(34, 211, 238, .16), transparent 62%),
        linear-gradient(160deg, #0a1020 0%, #0d1428 48%, #080d1b 100%);
    -webkit-font-smoothing: antialiased;
}

body.lp-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 30% 10%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 30% 10%, #000 0%, transparent 70%);
}

/* ---------- 布局 ---------- */
.lp-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    min-height: 100vh;
}

.lp-side-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.lp-card {
    width: 100%;
    max-width: 430px;
    padding: 38px 36px 30px;
    border-radius: 24px;
    background: #fbfcff;
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 40px 90px -40px rgba(4, 8, 20, .85), 0 2px 0 rgba(255, 255, 255, .6) inset;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.lp-brand img {
    max-height: 40px;
    width: auto;
}

.lp-brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--lp-ink);
}

.lp-brand-sub {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--lp-muted);
}

.lp-head {
    margin-bottom: 22px;
}

.lp-title {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.4px;
    color: #101a30;
}

.lp-desc {
    margin: 8px 0 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--lp-muted);
}

/* ---------- 分段选项卡 ---------- */
.lp-tabs {
    display: grid;
    grid-auto-flow: column;
    gap: 4px;
    padding: 4px;
    margin: 0 0 20px;
    border-radius: 12px;
    background: #eef2fb;
    border: 1px solid var(--lp-border);
}

.lp-tabs a {
    display: block;
    padding: 9px 10px;
    border-radius: 9px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #5b6885;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.lp-tabs a:hover {
    color: var(--lp-accent);
}

.lp-tabs a.active {
    background: #fff;
    color: var(--lp-accent);
    box-shadow: 0 4px 12px rgba(31, 45, 92, .12);
}

/* ---------- 表单 ---------- */
.lp-field {
    margin-bottom: 16px;
}

.lp-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.lp-label {
    font-size: 13px;
    font-weight: 600;
    color: #3f4c68;
    letter-spacing: .01em;
}

.lp-label-row .lp-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lp-accent);
    text-decoration: none;
}

.lp-label-row .lp-link:hover {
    text-decoration: underline;
}

.lp-input-wrap {
    position: relative;
}

.lp-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 44px 0 14px;
    border-radius: 12px;
    border: 1px solid var(--lp-border);
    background: var(--lp-field);
    color: #16203a;
    font-size: 15px;
    line-height: 46px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.lp-input::placeholder {
    color: #9aa6bd;
    font-size: 14px;
}

.lp-input:hover {
    border-color: #cfd9ee;
}

.lp-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}

.lp-input.no-action {
    padding-right: 14px;
}

/* 密码显示切换 */
.lp-eye {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: #8b98b0;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.lp-eye:hover {
    background: rgba(99, 102, 241, .10);
    color: var(--lp-accent);
}

.lp-eye .icon {
    font-size: 17px;
}

.lp-hint {
    margin-top: 6px;
    font-size: 12.5px;
    color: #7b88a3;
}

/* 验证码 */
.lp-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 10px;
    align-items: end;
}

.lp-code-row img {
    width: 116px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--lp-border);
    background: #fff;
    cursor: pointer;
    object-fit: cover;
}

/* ---------- 按钮 ---------- */
.lp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    margin: 6px 0 0;
    border: 0;
    border-radius: 13px;
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
    box-shadow: 0 18px 34px -18px rgba(99, 102, 241, .95);
    transition: transform .16s ease, box-shadow .18s ease, filter .18s ease;
}

.lp-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px -18px rgba(99, 102, 241, 1);
    filter: brightness(1.03);
}

.lp-submit:active {
    transform: translateY(0);
}

.lp-submit:disabled,
.lp-submit.is-loading {
    opacity: .72;
    cursor: default;
    transform: none;
}

/* ---------- 分区与脚注 ---------- */
.lp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #98a5bd;
}

.lp-divider::before,
.lp-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dfe6f4, transparent);
}

.lp-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
}

.lp-oauth a {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    border: 1px solid var(--lp-border);
    background: #fff;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}

.lp-oauth a:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, .5);
    box-shadow: 0 12px 24px -14px rgba(31, 45, 92, .6);
}

.lp-oauth img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

.lp-foot-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eaeff9;
    text-align: center;
    font-size: 13px;
    color: var(--lp-muted);
}

.lp-foot-note a {
    color: var(--lp-accent);
    font-weight: 600;
    text-decoration: none;
}

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

.lp-copyright {
    margin: 16px 0 0;
    text-align: center;
    font-size: 12px;
    color: #98a5bd;
}

/* ---------- 右侧展示区 ---------- */
.lp-side-show {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 60px clamp(40px, 6vw, 96px);
    overflow: hidden;
    color: #e6f1ff;
}

.lp-side-show::before {
    content: "";
    position: absolute;
    right: -160px;
    top: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, .38), transparent 66%);
    filter: blur(6px);
}

.lp-side-show::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -180px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .26), transparent 68%);
    filter: blur(6px);
}

.lp-show-inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.lp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid rgba(34, 211, 238, .32);
    background: rgba(34, 211, 238, .10);
    font-size: 11.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #a5f3fc;
}

.lp-show-title {
    margin: 18px 0 12px;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.6px;
    color: #f8fbff;
}

.lp-show-title em {
    font-style: normal;
    background: linear-gradient(92deg, #a5b4fc, #67e8f9 60%, #a7f3d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-show-desc {
    margin: 0;
    max-width: 460px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #9fb0cd;
}

.lp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.lp-pills span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .55);
    font-size: 13px;
    color: #cbd5e1;
    backdrop-filter: blur(6px);
}

.lp-pills span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
}

.lp-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 520px;
    margin-top: 8px;
}

.lp-stat {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(12, 20, 38, .62);
    backdrop-filter: blur(8px);
}

.lp-stat b {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #f1f5ff;
    font-variant-numeric: tabular-nums;
}

.lp-stat span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #8ea3c4;
}

.lp-show-foot {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    font-size: 12.5px;
    color: #7c8ba6;
}

/* 商户端原有插画式展示（保留 Show.svg 时使用） */
.lp-illus {
    position: relative;
    z-index: 1;
    max-width: 360px;
    margin: 0 auto;
}

.lp-illus img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- 移动端 ---------- */
@media (max-width: 991.98px) {
    body.lp-body {
        background:
            radial-gradient(760px 420px at 50% -12%, rgba(99, 102, 241, .18), transparent 62%),
            linear-gradient(170deg, #101a30 0%, #0b1220 42%, #080d1b 100%);
    }

    body.lp-body::before {
        opacity: .5;
    }

    .lp-wrap {
        grid-template-columns: minmax(0, 1fr);
        min-height: 100vh;
        align-content: center;
    }

    .lp-side-form {
        padding: 28px 18px 34px;
        align-items: flex-start;
    }

    .lp-card {
        max-width: 460px;
        padding: 26px 20px 22px;
        border-radius: 20px;
        box-shadow: 0 30px 70px -34px rgba(4, 8, 20, .9);
    }

    .lp-title {
        font-size: 22px;
    }

    .lp-side-show {
        display: none;
    }
}

@media (max-width: 399.98px) {
    .lp-card {
        padding: 22px 16px 18px;
        border-radius: 18px;
    }

    .lp-input {
        height: 46px;
        font-size: 14.5px;
    }

    .lp-submit {
        height: 48px;
        font-size: 15px;
    }

    .lp-code-row {
        grid-template-columns: minmax(0, 1fr) 100px;
    }

    .lp-code-row img {
        width: 100px;
    }
}

/* ---------- 暗色（跟随系统偏好时不刺眼） ---------- */
@media (prefers-color-scheme: dark) {
    .lp-card {
        background: #fbfcff;
    }
}
