/* ==========================================================================
   登录页 - 动态 B 端界面
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --lp-primary: #2563eb;
    --lp-cyan: #22d3ee;
    --lp-text: #0f172a;
    --lp-muted: #64748b;
}

html, body { height: 100%; }

.lp-body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--lp-text);
    background: linear-gradient(125deg, #0b1220 0%, #13294b 38%, #1d4ed8 72%, #0ea5e9 100%);
    background-size: 300% 300%;
    animation: lp-gradient 18s ease infinite;
}

@keyframes lp-gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 动态光晕 */
.lp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    pointer-events: none;
    z-index: 0;
}
.lp-orb.a { width: 460px; height: 460px; background: #3b82f6; top: -140px; left: -120px; animation: lp-float 14s ease-in-out infinite; }
.lp-orb.b { width: 380px; height: 380px; background: #22d3ee; bottom: -130px; right: -90px;  animation: lp-float 18s ease-in-out infinite reverse; }
.lp-orb.c { width: 260px; height: 260px; background: #8b5cf6; top: 55%; left: 12%; opacity: .35; animation: lp-float 22s ease-in-out infinite; }

@keyframes lp-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -40px) scale(1.12); }
}

/* 网格纹理 */
.lp-grid {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* 漂浮的盾牌/锁图标 */
.lp-particles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lp-particles span {
    position: absolute; bottom: -40px; color: rgba(255,255,255,.10);
    animation: lp-rise linear infinite;
}
.lp-particles svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes lp-rise {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: .9; }
    90%  { opacity: .9; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* 主容器 */
.lp-wrap {
    position: relative; z-index: 2;
    width: 100%; max-width: 940px;
    display: grid; grid-template-columns: 1.05fr .95fr;
    border-radius: 22px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(2, 6, 23, .55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: lp-in .7s cubic-bezier(.22, 1, .36, 1);
}
@keyframes lp-in {
    from { opacity: 0; transform: translateY(26px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 左侧品牌区 */
.lp-aside {
    background: linear-gradient(160deg, rgba(37,99,235,.92), rgba(14,165,233,.86));
    padding: 48px 42px; color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.lp-aside::after {
    content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
    right: -120px; top: -100px;
    background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%);
}
.lp-brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.lp-badge {
    width: 42px; height: 42px; border-radius: 12px; flex: 0 0 42px;
    background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.lp-badge svg { width: 23px; height: 23px; fill: #fff; }

.lp-hero { position: relative; z-index: 1; }
.lp-hero h1 { font-size: 30px; line-height: 1.3; font-weight: 800; margin-bottom: 14px; }
.lp-hero p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.85); margin-bottom: 26px; }

.lp-feats { list-style: none; position: relative; z-index: 1; }
.lp-feats li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.92); margin-bottom: 14px; }
.lp-feats .dot {
    width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
    background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
}
.lp-feats .dot svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; }

/* 右侧表单区 */
.lp-panel { background: rgba(255,255,255,.96); padding: 46px 44px 38px; }
.lp-title { font-size: 23px; font-weight: 800; color: #0f172a; }
.lp-sub { font-size: 13px; color: var(--lp-muted); margin: 7px 0 28px; }

.lp-field { position: relative; margin-bottom: 18px; }
.lp-field .ic {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: #94a3b8; pointer-events: none;
}
.lp-field .ic svg { width: 100%; height: 100%; fill: currentColor; }
.lp-field input {
    width: 100%; height: 48px; padding: 0 14px 0 44px;
    border: 1.5px solid #e2e8f0; border-radius: 11px;
    font-size: 14px; color: #0f172a; background: #f8fafc;
    outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.lp-field input::placeholder { color: #94a3b8; }
.lp-field input:focus { border-color: var(--lp-primary); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.lp-field input:focus + .ic, .lp-field .ic.focus { color: var(--lp-primary); }

.lp-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; cursor: pointer; color: #94a3b8; padding: 4px;
}
.lp-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.lp-toggle:hover { color: var(--lp-primary); }

.lp-captcha-row { display: flex; gap: 10px; }
.lp-captcha-row .lp-field { flex: 1; margin-bottom: 0; }
.lp-captcha-img { height: 48px; width: 128px; border-radius: 11px; border: 1.5px solid #e2e8f0; cursor: pointer; object-fit: cover; background: #f1f5f9; }

.lp-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; font-size: 13px; }
.lp-remember { display: flex; align-items: center; gap: 7px; color: var(--lp-muted); cursor: pointer; user-select: none; }
.lp-remember input { width: 15px; height: 15px; accent-color: var(--lp-primary); cursor: pointer; }

.lp-btn {
    width: 100%; height: 49px; border: 0; border-radius: 11px; cursor: pointer;
    font-size: 15px; font-weight: 700; letter-spacing: 3px; color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    background-size: 180% 180%;
    box-shadow: 0 10px 24px rgba(37,99,235,.35);
    transition: transform .15s, box-shadow .15s, background-position .4s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lp-btn:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(37,99,235,.45); }
.lp-btn:active { transform: translateY(0); }
.lp-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.lp-btn .spin {
    width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff; border-radius: 50%; animation: lp-rot .7s linear infinite; display: none;
}
.lp-btn.loading .spin { display: inline-block; }
@keyframes lp-rot { to { transform: rotate(360deg); } }

.lp-error {
    display: none; align-items: center; gap: 8px;
    background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
    padding: 10px 13px; border-radius: 10px; font-size: 13px; margin-bottom: 16px;
}
.lp-error.show { display: flex; animation: lp-shake .4s; }
.lp-error svg { width: 16px; height: 16px; fill: #dc2626; flex: 0 0 16px; }
@keyframes lp-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-7px); }
    40%, 80% { transform: translateX(7px); }
}

.lp-tip { margin-top: 22px; text-align: center; font-size: 12px; color: var(--lp-muted); }
.lp-foot { position: relative; z-index: 2; margin-top: 18px; text-align: center; color: rgba(255,255,255,.65); font-size: 12px; }

/* 响应式 */
@media (max-width: 820px) {
    .lp-wrap { grid-template-columns: 1fr; max-width: 440px; }
    .lp-aside { display: none; }
    .lp-panel { padding: 38px 30px 30px; }
}
@media (max-width: 420px) {
    .lp-panel { padding: 32px 22px 26px; }
    .lp-title { font-size: 20px; }
}
