@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink-950: #060b10;
  --ink-900: #0a1118;
  --ink-850: #0d1820;
  --ink-800: #12222b;
  --paper: #eef2ed;
  --paper-2: #f6f8f4;
  --surface: #ffffff;
  --line: #e3e9e3;
  --text: #111d23;
  --text-2: #50616a;
  --text-3: #84939a;
  --lime: #c9f26b;
  --lime-2: #aee04e;
  --teal: #16bfa8;
  --red: #e05555;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font); color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; font-size: 14px; }
button { cursor: pointer; border: none; background: none; color: inherit; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.mono { font-family: var(--mono); }

.auth-body { overflow-x: hidden; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(440px, .82fr); min-height: 100vh; }

/* ================= 左侧品牌区 ================= */
.auth-brand {
  position: relative; overflow: hidden; color: #e7efe4;
  background:
    radial-gradient(110% 70% at 0% 0%, rgba(201, 242, 107, .10), transparent 55%),
    radial-gradient(80% 50% at 100% 100%, rgba(22, 191, 168, .08), transparent 60%),
    linear-gradient(155deg, #0c1720 0%, #070e13 60%, #091219 100%);
  padding: 34px 52px 26px;
  display: flex; flex-direction: column;
}
.brand-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 70% at 40% 35%, #000 30%, transparent 85%);
}
.brand-glow {
  position: absolute; width: 520px; height: 520px; right: -150px; top: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,242,107,.13), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.brand-top { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.brand-mark { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 10px 30px -12px rgba(201,242,107,.5); }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .05em; color: #f1f7ec; }
.brand-sub { font-size: 8.5px; letter-spacing: .26em; color: #617a80; margin-top: 4px; }

.brand-copy { position: relative; z-index: 2; margin-top: clamp(30px, 6vh, 70px); max-width: 620px; }
.brand-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 9px; letter-spacing: .28em; color: #7a9294; margin-bottom: 18px; }
.brand-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(201,242,107,.12); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(201,242,107,.12); } 50% { box-shadow: 0 0 0 7px rgba(201,242,107,.04); } }
.brand-copy h1 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.25; letter-spacing: -.025em; font-weight: 800; color: #f2f8ee; }
.brand-copy h1 em { font-style: normal; color: var(--lime); position: relative; }
.brand-copy h1 em::after { content: ''; position: absolute; left: 0; right: 2px; bottom: 3px; height: 6px; background: rgba(201,242,107,.16); z-index: -1; border-radius: 2px; }
.brand-copy p { margin-top: 18px; font-size: 12.5px; line-height: 1.9; color: #859b9c; max-width: 520px; }

.brand-visual { position: relative; z-index: 2; margin: 8px 0 0 -14px; max-width: 600px; opacity: .96; }
.brand-visual svg { width: 100%; height: auto; display: block; }

.brand-features { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; position: relative; z-index: 2; padding-top: 18px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 9px; flex: 1; min-width: 150px;
  padding: 11px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px;
  background: rgba(255,255,255,.022);
}
.feature-item .icon { width: 16px; height: 16px; color: var(--lime); margin-top: 1px; }
.feature-item b { display: block; font-size: 11px; font-weight: 700; color: #dfe8db; }
.feature-item span { display: block; font-size: 9px; color: #6f858a; margin-top: 3px; line-height: 1.5; }

.brand-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.05); font-size: 9px; color: #4e646c; letter-spacing: .06em; position: relative; z-index: 2; }

/* ================= 右侧登录区 ================= */
.auth-panel {
  display: flex; flex-direction: column; min-height: 100vh; position: relative;
  background:
    radial-gradient(circle at 1px 1px, rgba(17,29,35,.05) 1px, transparent 0),
    radial-gradient(70% 50% at 100% 0%, rgba(201,242,107,.13), transparent 60%),
    var(--paper);
  background-size: 26px 26px, 100% 100%, 100% 100%;
  padding: 26px 34px 20px;
}
.panel-top { display: flex; justify-content: space-between; align-items: center; }
.panel-crumb { display: flex; align-items: center; gap: 8px; font-size: 8.5px; letter-spacing: .24em; color: var(--text-3); }
.panel-crumb .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime-2); }
.panel-ver { font-size: 9px; color: var(--text-3); border: 1px solid var(--line); padding: 3px 7px; border-radius: 20px; background: rgba(255,255,255,.6); }

.auth-card {
  width: 100%; max-width: 440px; margin: auto; position: relative;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 22px;
  box-shadow: 0 40px 90px -40px rgba(9, 22, 16, .45), 0 2px 6px rgba(9,22,16,.04);
  padding: 34px 34px 28px;
}
.card-accent { position: absolute; left: 34px; top: 0; width: 44px; height: 3px; background: linear-gradient(90deg, var(--lime), var(--teal)); border-radius: 0 0 4px 4px; }
.auth-head h2 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.auth-head p { font-size: 11.5px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }
.auth-form { margin-top: 24px; display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .icon { position: absolute; left: 13px; width: 16px; height: 16px; color: #9aa89f; pointer-events: none; z-index: 1; }
.input-wrap input, .input-wrap select {
  width: 100%; height: 46px; padding: 0 42px 0 39px; border: 1px solid #dde5dd; border-radius: 11px;
  background: #fbfcfa; font-size: 13px; transition: all .18s;
}
.input-wrap input::placeholder { color: #a9b5ab; }
.input-wrap input:focus, .input-wrap select:focus { border-color: #a8c97a; background: #fff; box-shadow: 0 0 0 3px rgba(201,242,107,.24); outline: none; }
.input-wrap select { appearance: none; cursor: pointer; }
.select-wrap::after {
  content: ''; position: absolute; right: 14px; width: 7px; height: 7px; border-right: 1.5px solid #94a298; border-bottom: 1.5px solid #94a298; transform: rotate(45deg); pointer-events: none; margin-top: -3px;
}
.pw-toggle { position: absolute; right: 7px; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #9aa89f; }
.pw-toggle:hover { background: var(--paper-2); color: var(--text); }
.pw-toggle .icon { width: 15px; height: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.agree { display: flex; align-items: flex-start; gap: 7px; font-size: 10px; color: var(--text-3); line-height: 1.5; cursor: pointer; }
.agree input { accent-color: #9ccb2f; margin-top: 1px; }
.form-error { display: none; padding: 9px 11px; background: #fdeceb; border: 1px solid #f6d2d2; border-radius: 8px; color: #c24545; font-size: 11px; line-height: 1.5; }
.form-error.show { display: block; }
.btn-login {
  height: 48px; border-radius: 12px; margin-top: 3px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(135deg, #d4f87f, var(--lime-2)); color: #0a1118;
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 14px 30px -16px rgba(156,203,47,.9);
  transition: all .2s; position: relative; overflow: hidden;
}
.btn-login::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-120%); transition: transform .5s; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -16px rgba(156,203,47,.95); }
.btn-login:hover::after { transform: translateX(120%); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-login .icon { width: 16px; height: 16px; }
.btn-loading .icon { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-links { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: var(--text-3); }
.auth-links a { color: #557f26; font-weight: 700; border-bottom: 1px dashed #b9d98a; padding-bottom: 1px; }
.auth-links a:hover { color: #3f6218; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; font-size: 8.5px; color: #9aa89f; letter-spacing: .06em; padding-top: 10px; }

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 22px 20px 16px; }
  .auth-card { margin: 6vh auto; }
}
@media (max-width: 520px) {
  .auth-card { padding: 28px 22px 22px; border-radius: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-head h2 { font-size: 22px; }
  .panel-crumb { letter-spacing: .14em; }
}
