:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #14532d;
    --ink: #0c1f16;
    --muted: #5f7267;
    --line: #e3efe7;
    --shadow: 0 30px 70px -30px rgba(21, 128, 61, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    background: #f5fbf7;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 24px;
}

/* ---- 背景 ---- */
.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(22, 163, 74, .08) 1px, transparent 0);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}

.orb { position: fixed; border-radius: 50%; filter: blur(70px); z-index: 0; pointer-events: none; opacity: .65; }
.orb-1 { width: 440px; height: 440px; left: -130px; top: -130px; background: radial-gradient(circle, #bbf7d0, transparent 70%); animation: float1 18s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; right: -120px; bottom: -140px; background: radial-gradient(circle, #86efac, transparent 70%); animation: float2 22s ease-in-out infinite; }
.orb-3 { width: 260px; height: 260px; right: 28%; top: 6%; background: radial-gradient(circle, #a7f3d0, transparent 70%); animation: float1 26s ease-in-out infinite reverse; }

@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -24px) scale(1.06); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-26px, 22px) scale(1.05); } }

/* ---- 主容器 ---- */
.shell {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    width: min(1160px, 100%);
    min-height: 620px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ---- 左侧品牌区 ---- */
.brand {
    position: relative;
    background: linear-gradient(150deg, #eafbf2 0%, #d4f2e2 52%, #bfedd3 100%);
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

#network { position: absolute; inset: 0; width: 100%; height: 100%; }

.brand-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 40px; height: 100%; animation: fadeLeft .7s cubic-bezier(.2, .7, .3, 1) both; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo span { font-size: 17px; font-weight: 700; letter-spacing: .01em; color: var(--green-800); }

.hero { margin-top: auto; }
.eyebrow { font-family: "SF Mono", "JetBrains Mono", Consolas, monospace; font-size: 11px; letter-spacing: .28em; color: var(--green-600); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: 46px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--green-800); }
.hero h1 .dot { color: var(--green-500); }
.tagline { margin-top: 18px; font-size: 15.5px; line-height: 1.7; color: var(--muted); max-width: 34em; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 40px; }
.chip {
    font-size: 12.5px; font-weight: 600; color: var(--green-700);
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(22, 163, 74, .18);
    padding: 8px 14px; border-radius: 999px;
    backdrop-filter: blur(6px);
}

/* ---- 右侧登录区 ---- */
.panel { display: flex; align-items: center; justify-content: center; padding: 56px; background: #fff; }

.form { width: 100%; max-width: 360px; animation: fadeUp .7s .1s cubic-bezier(.2, .7, .3, 1) both; }
.form h2 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.form .sub { margin-top: 8px; color: var(--muted); font-size: 14px; }

.error {
    margin-top: 20px; padding: 12px 14px; border-radius: 12px;
    background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
    font-size: 13.5px; animation: shake .3s ease;
}
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.field { display: block; margin-top: 20px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }

.input {
    position: relative; display: flex; align-items: center;
    border: 1px solid var(--line); border-radius: 12px; background: #fbfefc;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus-within { border-color: var(--green-400); background: #fff; box-shadow: 0 0 0 4px rgba(74, 222, 128, .16); }
.input .ic { width: 18px; height: 18px; margin-left: 14px; color: #9db3a6; flex: none; }
.input input { flex: 1; border: none; background: transparent; outline: none; padding: 14px 12px; font-size: 15px; color: var(--ink); min-width: 0; }
.input input::placeholder { color: #b3c3b9; }

.toggle { border: none; background: none; cursor: pointer; margin-right: 12px; color: #9db3a6; display: flex; padding: 4px; border-radius: 6px; transition: color .2s; }
.toggle:hover { color: var(--green-600); }
.toggle .eye { width: 18px; height: 18px; }

.submit {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 15px; margin-top: 28px;
    border: none; border-radius: 14px;
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 14px 28px -12px rgba(16, 185, 129, .7);
    transition: transform .2s ease, box-shadow .2s ease;
}
.submit:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(16, 185, 129, .8); }
.submit:active { transform: translateY(0); }
.submit svg { width: 18px; height: 18px; transition: transform .25s ease; }
.submit:hover svg { transform: translateX(3px); }
.submit::after {
    content: ""; position: absolute; top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine { 0% { left: -75%; } 55% { left: 130%; } 100% { left: 130%; } }

.hint { margin-top: 20px; text-align: center; font-size: 12.5px; color: #a3b3aa; }
.hint a { color: var(--green-600); text-decoration: none; font-weight: 600; }
.hint a:hover { text-decoration: underline; }

.guest {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 13px; margin-top: 14px;
    border: 1px solid var(--line); border-radius: 14px;
    color: var(--muted); font-size: 14.5px; font-weight: 600;
    text-decoration: none; transition: all .2s ease;
}
.guest:hover { color: var(--green-700); border-color: var(--green-300); background: var(--green-50); }

@keyframes fadeLeft { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---- 底部备案信息 ---- */
.icp {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 1;
    text-align: center;
    font-size: 12.5px;
    pointer-events: none;
}
.icp a {
    color: #a3b3aa;
    text-decoration: none;
    pointer-events: auto;
    transition: color .2s;
}
.icp a:hover { color: var(--green-600); }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    .brand { display: none; }
}
