/* =========================================================
   入职转化链路追踪平台 · 登录 / 注册
   ========================================================= */
:root {
    --ink: #0A1120;
    --ink-2: #101A2E;
    --gold: #C9A227;
    --gold-2: #E3C566;
    --teal: #2AA79B;
    --paper: #F7F5F0;
    --muted: #8A94A6;
    --line: rgba(255, 255, 255, .1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--ink);
    color: #E9EDF5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(460px, .85fr); min-height: 100vh; }

/* ---------- 品牌侧 ---------- */
.auth-brand {
    position: relative;
    overflow: hidden;
    padding: 48px 64px 56px;
    background:
        radial-gradient(900px 600px at 8% 0%, rgba(42, 167, 155, .22), transparent 60%),
        radial-gradient(760px 620px at 90% 100%, rgba(201, 162, 39, .18), transparent 62%),
        linear-gradient(150deg, #0B1424 0%, #0A1120 45%, #0C1729 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(80% 70% at 40% 40%, #000 20%, transparent 100%);
    pointer-events: none;
}
.auth-brand::after {
    content: "";
    position: absolute;
    width: 560px; height: 560px;
    right: -220px; top: -180px;
    border: 1px solid rgba(201, 162, 39, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(201, 162, 39, .03), 0 0 0 130px rgba(42, 167, 155, .03);
    pointer-events: none;
}
.brand-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 14px;
    background: linear-gradient(145deg, rgba(201, 162, 39, .95), rgba(163, 124, 18, .95));
    display: grid; place-items: center;
    box-shadow: 0 12px 30px -10px rgba(201, 162, 39, .65), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-word { font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.brand-word small { display: block; font-size: 11px; letter-spacing: .26em; color: rgba(233, 237, 245, .42); margin-top: 3px; font-weight: 400; }
.brand-copy { position: relative; z-index: 2; margin-top: 56px; max-width: 620px; }
.brand-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; letter-spacing: .3em; color: var(--gold-2);
    text-transform: uppercase; margin-bottom: 22px;
}
.brand-eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.brand-copy h1 {
    font-size: clamp(34px, 3.6vw, 54px);
    line-height: 1.16;
    letter-spacing: -.03em;
    font-weight: 600;
    background: linear-gradient(120deg, #FFFFFF 20%, #D8E0EE 55%, #F0DCA6 95%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-copy p {
    margin-top: 20px; max-width: 470px;
    font-size: 14px; line-height: 1.9; color: rgba(233, 237, 245, .58);
}
.brand-visual { position: relative; z-index: 2; margin-top: 44px; display: flex; gap: 40px; align-items: flex-end; }
.funnel-viz { display: flex; flex-direction: column; gap: 9px; width: 300px; }
.funnel-row { display: flex; align-items: center; gap: 12px; }
.funnel-bar {
    height: 34px; border-radius: 8px; flex: none;
    background: linear-gradient(90deg, rgba(42, 167, 155, .32), rgba(42, 167, 155, .06));
    border: 1px solid rgba(42, 167, 155, .22);
    position: relative; overflow: hidden;
}
.funnel-bar::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
    transform: translateX(-100%);
    animation: shimmer 3.4s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}
.funnel-row:nth-child(1) .funnel-bar { width: 260px; }
.funnel-row:nth-child(2) .funnel-bar { width: 204px; background: linear-gradient(90deg, rgba(107, 124, 214, .32), rgba(107, 124, 214, .05)); border-color: rgba(107, 124, 214, .26); }
.funnel-row:nth-child(3) .funnel-bar { width: 150px; background: linear-gradient(90deg, rgba(201, 162, 39, .32), rgba(201, 162, 39, .05)); border-color: rgba(201, 162, 39, .28); }
.funnel-row:nth-child(4) .funnel-bar { width: 104px; background: linear-gradient(90deg, rgba(228, 105, 75, .34), rgba(228, 105, 75, .05)); border-color: rgba(228, 105, 75, .28); }
.funnel-label { font-size: 11px; color: rgba(233, 237, 245, .5); width: 52px; flex: none; letter-spacing: .08em; }
.funnel-value { font-size: 12px; color: rgba(233, 237, 245, .8); font-variant-numeric: tabular-nums; }
@keyframes shimmer { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.brand-stats { display: flex; gap: 28px; }
.brand-stat strong { display: block; font-size: 24px; font-weight: 600; color: #F5F1E6; letter-spacing: -.02em; }
.brand-stat span { font-size: 11px; color: rgba(233, 237, 245, .42); letter-spacing: .06em; }
.brand-foot {
    position: relative; z-index: 2; display: flex; justify-content: space-between;
    font-size: 11px; color: rgba(233, 237, 245, .3); letter-spacing: .05em; padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

/* ---------- 表单侧 ---------- */
.auth-panel {
    background: var(--paper);
    color: #172033;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 56px;
    position: relative;
    border-radius: 34px 0 0 34px;
    box-shadow: -40px 0 90px -50px rgba(0, 0, 0, .8);
}
.auth-panel::before {
    content: ""; position: absolute; inset: 22px;
    border: 1px solid rgba(23, 32, 51, .06);
    border-radius: 22px; pointer-events: none;
}
.auth-card { width: 100%; max-width: 372px; position: relative; z-index: 2; }
.auth-head { margin-bottom: 32px; }
.auth-kicker { font-size: 11px; letter-spacing: .24em; color: #A9862A; font-weight: 600; margin-bottom: 12px; }
.auth-head h2 { font-size: 28px; letter-spacing: -.03em; color: #101A2E; font-weight: 600; }
.auth-head p { margin-top: 10px; font-size: 13px; color: #7C8698; line-height: 1.7; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; color: #5C6678; margin-bottom: 8px; letter-spacing: .02em; }
.input-wrap {
    display: flex; align-items: center; gap: 10px;
    background: #FFFFFF; border: 1px solid #E2DFD6;
    border-radius: 12px; padding: 0 14px; height: 48px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap:focus-within { border-color: #C9A227; box-shadow: 0 0 0 4px rgba(201, 162, 39, .12); background: #FFFEFB; }
.input-wrap > i { font-size: 17px; color: #A8AFA0; }
.input-wrap input {
    border: 0; outline: 0; flex: 1; height: 100%; font-size: 14px; background: transparent; color: #172033;
    font-family: inherit;
}
.input-wrap input::placeholder { color: #B4B9C4; }
.input-toggle { cursor: pointer; color: #9AA1B0; font-size: 17px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 24px; font-size: 12px; color: #7C8698; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.check input { accent-color: #C9A227; width: 14px; height: 14px; }
.link { color: #A9862A; font-weight: 500; }
.link:hover { text-decoration: underline; }
.btn-auth {
    width: 100%; height: 50px; border: 0; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, #172033, #0C1424);
    color: #F7F3E7; font-size: 14px; font-weight: 600; letter-spacing: .04em;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 18px 34px -18px rgba(12, 20, 36, .75);
    transition: transform .2s, box-shadow .2s;
    font-family: inherit;
}
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 22px 38px -18px rgba(12, 20, 36, .9); }
.btn-auth i { font-size: 18px; color: #E3C566; }
.auth-foot { margin-top: 26px; text-align: center; font-size: 12px; color: #8C94A4; }
.auth-foot a { color: #172033; font-weight: 600; border-bottom: 1px solid rgba(23, 32, 51, .25); padding-bottom: 1px; }
.alert {
    display: flex; gap: 9px; align-items: flex-start;
    background: #FDF0EC; border: 1px solid #F3C9BD; color: #A33A22;
    padding: 11px 13px; border-radius: 10px; font-size: 12px; line-height: 1.6; margin-bottom: 18px;
}
.alert i { font-size: 15px; margin-top: 1px; }
.alert.ok { background: #EDF7F1; border-color: #BFE3CE; color: #256B45; }
.auth-note { margin-top: 24px; font-size: 11px; color: #A2A8B4; line-height: 1.8; text-align: center; }

@media (max-width: 1080px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-panel { border-radius: 0; min-height: 100vh; padding: 32px 24px; }
    .auth-panel::before { inset: 12px; }
}
