/* ============================================================
   供应链齐套率提升系统 · 登录 / 注册
   ============================================================ */
:root {
    --bg: #04070d;
    --panel: #0b1320;
    --line: rgba(140, 172, 208, .14);
    --line-2: rgba(140, 172, 208, .24);
    --text: #e9eff9;
    --muted: #91a2bb;
    --dim: #5f718a;
    --lime: #c9f75c;
    --teal: #3ee0c6;
    --red: #ff6e6e;
    --sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); font-size: 13px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
h1, h2, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.auth-body {
    min-height: 100vh; position: relative; overflow-x: hidden;
    background:
        radial-gradient(1000px 600px at 16% 0%, rgba(201, 247, 92, .07), transparent 60%),
        radial-gradient(900px 700px at 95% 100%, rgba(62, 224, 198, .07), transparent 60%),
        var(--bg);
}
.auth-grid-lines {
    position: fixed; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(140, 172, 208, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 172, 208, .035) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at 40% 40%, #000 10%, transparent 75%);
}
.auth-shell {
    position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr;
    min-height: 100vh; max-width: 1560px; margin: 0 auto;
}
.auth-visual {
    display: flex; flex-direction: column; padding: 40px 52px 30px; position: relative;
    border-right: 1px solid var(--line);
}
.auth-visual::after {
    content: ""; position: absolute; right: -1px; top: 8%; height: 70%; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(201, 247, 92, .45), rgba(62, 224, 198, .25), transparent);
}
.auth-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 42px; color: var(--lime); filter: drop-shadow(0 0 14px rgba(201, 247, 92, .25)); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.auth-brand > div { display: flex; flex-direction: column; line-height: 1.2; }
.auth-brand strong { font-size: 17px; letter-spacing: .16em; }
.auth-brand small { font-family: var(--mono); font-size: 8.5px; color: var(--dim); letter-spacing: .22em; margin-top: 4px; }

.auth-hero { margin-top: auto; padding-top: 40px; }
.eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: .26em; color: var(--lime); display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--lime); opacity: .7; }
.auth-hero h1 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
.auth-hero h1 span { color: var(--lime); position: relative; }
.auth-hero h1 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 8px; background: rgba(201, 247, 92, .13); z-index: -1; }
.hero-sub { margin-top: 16px; max-width: 520px; font-size: 13px; line-height: 1.85; color: var(--muted); }
.hero-stats { display: flex; gap: 40px; margin-top: 30px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--mono); font-size: 26px; color: var(--text); letter-spacing: -.03em; }
.hero-stats span { font-size: 9.5px; color: var(--dim); letter-spacing: .08em; margin-top: 3px; }

.auth-network { margin: 34px 0 18px; opacity: .95; }
.auth-network svg { width: 100%; max-width: 640px; height: auto; display: block; }
.auth-network .node circle:first-child { fill: var(--lime); }
.auth-network .node circle:last-child { fill: var(--lime); animation: nodePulse 3.4s infinite; animation-delay: var(--d); transform-origin: center; }
@keyframes nodePulse { 0%, 100% { opacity: .18; } 50% { opacity: .5; } }
.net-label { font-family: var(--mono); font-size: 8px; letter-spacing: .14em; fill: #50637b; }

.auth-visual-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: rgba(95, 113, 138, .65); letter-spacing: .05em; padding-top: 18px; border-top: 1px solid rgba(140, 172, 208, .07); }

.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 40px; }
.auth-card {
    width: min(430px, 100%); position: relative; padding: 28px 30px 24px;
    background: linear-gradient(165deg, rgba(16, 27, 44, .97), rgba(8, 13, 22, .99));
    border: 1px solid var(--line-2); border-radius: 16px;
    box-shadow: 0 40px 110px -30px rgba(0, 0, 0, .9), 0 0 80px -40px rgba(201, 247, 92, .3);
    animation: cardIn .4s cubic-bezier(.2, .8, .2, 1);
}
.auth-card.is-wide { width: min(520px, 100%); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.auth-card::before {
    content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--lime), var(--teal), transparent); opacity: .8;
}
.auth-card::after {
    content: ""; position: absolute; inset: 9px -9px -9px 9px; z-index: -1; border-radius: 17px;
    border: 1px solid rgba(140, 172, 208, .1); pointer-events: none;
}
.auth-card-top { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em; color: var(--dim); margin-bottom: 14px; }
.auth-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px rgba(201, 247, 92, .8); animation: dotPulse 2.2s infinite; }
@keyframes dotPulse { 50% { opacity: .35; } }
.auth-card h2 { font-size: 23px; font-weight: 700; letter-spacing: .01em; }
.auth-desc { font-size: 11.5px; color: var(--muted); margin-top: 6px; margin-bottom: 20px; }
.auth-alert { display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border-radius: 7px; border: 1px solid rgba(255, 110, 110, .28); background: rgba(255, 110, 110, .07); color: #ffa6a6; font-size: 11px; margin-bottom: 14px; }
.auth-alert .ico { width: 14px; height: 14px; margin-top: 1px; flex: none; }
.auth-alert.is-ok { border-color: rgba(143, 230, 164, .3); background: rgba(143, 230, 164, .07); color: #a7e9b6; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.field-control { position: relative; display: flex; align-items: center; }
.field-control .ico { position: absolute; left: 12px; width: 15px; height: 15px; color: var(--dim); pointer-events: none; }
.field-control input {
    width: 100%; height: 42px; padding: 0 40px 0 38px; border-radius: 8px;
    background: rgba(4, 9, 16, .8); border: 1px solid var(--line); color: var(--text);
    font-size: 12.5px; outline: none; transition: border-color .16s, box-shadow .16s;
}
.field-control input::placeholder { color: #43536a; }
.field-control input:focus { border-color: rgba(201, 247, 92, .5); box-shadow: 0 0 0 3px rgba(201, 247, 92, .07); }
.pwd-toggle { position: absolute; right: 8px; width: 28px; height: 28px; border: none; background: none; color: var(--dim); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; }
.pwd-toggle:hover, .pwd-toggle.is-on { color: var(--lime); }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line-2); background: rgba(4, 9, 16, .8); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: all .15s; }
.check input:checked + i { background: var(--lime); border-color: var(--lime); }
.check input:checked + i::after { content: ""; width: 7px; height: 4px; border-left: 1.6px solid #07101a; border-bottom: 1.6px solid #07101a; transform: rotate(-45deg) translateY(-1px); }
.auth-hint { font-size: 9.5px; color: var(--dim); }
.auth-submit {
    height: 44px; margin-top: 4px; border: none; border-radius: 8px; cursor: pointer;
    background: linear-gradient(180deg, #d9ff8d, var(--lime)); color: #07101a;
    font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    box-shadow: 0 14px 34px -16px rgba(201, 247, 92, .7);
    transition: filter .16s, transform .16s;
}
.auth-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.auth-submit .ico { width: 16px; height: 16px; }
.auth-switch { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10.5px; color: var(--dim); }
.auth-switch a { color: var(--lime); display: inline-flex; align-items: center; gap: 3px; }
.auth-switch a .ico { width: 12px; height: 12px; }
.auth-switch a:hover { text-decoration: underline; }
.auth-trust { display: flex; justify-content: space-between; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.auth-trust span { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--dim); }
.auth-trust .ico { width: 11px; height: 11px; color: rgba(201, 247, 92, .55); }
.auth-copyright { margin-top: 20px; font-size: 9px; color: rgba(95, 113, 138, .65); letter-spacing: .04em; font-family: var(--mono); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; }
.field-full { grid-column: 1 / -1; }
.reg-points { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; }
.reg-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.reg-points .ico { width: 15px; height: 15px; color: var(--lime); margin-top: 1px; flex: none; }
.reg-agree { margin-top: 3px; }

@media (max-width: 1180px) {
    .auth-visual { padding: 32px 34px 24px; }
    .auth-hero h1 { font-size: 34px; }
    .hero-stats { gap: 26px; }
}
@media (max-width: 960px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { min-height: 100vh; padding: 26px 18px; }
    .auth-card { width: min(480px, 100%); }
}
@media (max-width: 520px) {
    .auth-card { padding: 24px 20px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .auth-trust { flex-wrap: wrap; }
    .auth-options { flex-direction: column; align-items: flex-start; gap: 7px; }
}
