*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #e6eefb;
  background: #050a17;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  height: 100vh;
  min-height: 640px;
}

/* ============== LEFT BRAND ============== */
.brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(0, 210, 255, .14), transparent 60%),
    radial-gradient(900px 700px at 100% 100%, rgba(60, 100, 255, .16), transparent 60%),
    linear-gradient(135deg, #050d1f 0%, #08152c 45%, #0a1c3a 100%);
  isolation: isolate;
}

#bgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: .55;
}

.grid-layer {
  position: absolute;
  inset: -2px;
  z-index: 0;
  background-image:
    linear-gradient(rgba(80, 160, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 160, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 75%);
  animation: gridShift 28s linear infinite;
}
@keyframes gridShift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 48px 48px, 48px 48px; }
}

.circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: .9;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: .55;
  pointer-events: none;
}
.orb-1 { width: 360px; height: 360px; left: -120px; top: -120px; background: radial-gradient(circle, #1a6bff 0%, transparent 70%); animation: float 18s ease-in-out infinite; }
.orb-2 { width: 320px; height: 320px; right: -100px; bottom: -80px; background: radial-gradient(circle, #00d4ff 0%, transparent 70%); animation: float 22s ease-in-out infinite reverse; }
.orb-3 { width: 280px; height: 280px; left: 38%; top: 40%; background: radial-gradient(circle, #4d3fff 0%, transparent 70%); opacity: .3; animation: float 30s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(30px, -30px, 0); }
}

.brand-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
}

/* logo */
.brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(0, 224, 255, .18), rgba(91, 140, 255, .18));
  border: 1px solid rgba(0, 224, 255, .35);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0, 224, 255, .25), inset 0 0 12px rgba(0, 224, 255, .12);
}
.logo-mark svg { width: 28px; height: 28px; }
.logo-text { line-height: 1.2; }
.logo-cn {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
}
.logo-en {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 2.2px;
  color: rgba(0, 224, 255, .7);
  margin-top: 4px;
}
.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(0, 224, 255, .85);
  padding: 6px 12px;
  border: 1px solid rgba(0, 224, 255, .35);
  border-radius: 999px;
  background: rgba(0, 224, 255, .06);
  letter-spacing: 1px;
}

/* hero */
.hero {
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 2.2px;
  color: rgba(170, 215, 255, .8);
  padding: 8px 14px;
  border: 1px solid rgba(0, 224, 255, .25);
  border-radius: 999px;
  background: rgba(8, 24, 48, .55);
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00e0ff;
  box-shadow: 0 0 10px #00e0ff;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: 44px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
}
.hero h1 .gradient {
  background: linear-gradient(90deg, #00e0ff 0%, #5b8cff 50%, #a677ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin: 0 0 32px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(200, 220, 245, .78);
  max-width: 540px;
}

/* capability cards */
.caps {
  list-style: none;
  padding: 0; margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}
.caps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(10, 28, 56, .65), rgba(8, 20, 40, .35));
  border: 1px solid rgba(80, 160, 255, .18);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.caps li::before {
  content: "";
  position: absolute; left: 0; top: 16px; bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, #00e0ff, transparent);
  border-radius: 2px;
}
.caps li:hover {
  transform: translateX(4px);
  border-color: rgba(0, 224, 255, .45);
  box-shadow: 0 8px 32px rgba(0, 120, 255, .15);
}
.caps-ic {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(0, 224, 255, .1);
  color: #00e0ff;
}
.caps-ic svg { width: 20px; height: 20px; }
.caps-t {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: .5px;
}
.caps-d {
  font-size: 12.5px;
  color: rgba(180, 205, 235, .7);
  line-height: 1.6;
}

/* kpis */
.kpis {
  display: flex;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(80, 160, 255, .12);
}
.kpi {
  display: flex;
  flex-direction: column;
}
.kpi-n {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #87c2ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kpi-n sup {
  font-size: 14px;
  font-weight: 500;
  margin-left: 4px;
  color: rgba(0, 224, 255, .85);
  -webkit-text-fill-color: rgba(0, 224, 255, .85);
}
.kpi-l {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(150, 180, 215, .65);
  margin-top: 8px;
}

.brand-foot {
  margin-top: 24px;
  font-size: 11.5px;
  color: rgba(140, 170, 205, .55);
  letter-spacing: .5px;
}
.brand-foot .sep { margin: 0 8px; }

/* ============== RIGHT AUTH ============== */
.auth {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f6f8fc;
  padding: 40px;
}
.auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(0, 120, 255, .04), transparent 60%),
    radial-gradient(600px 500px at 10% 100%, rgba(0, 200, 255, .04), transparent 60%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  padding: 44px 40px 36px;
  box-shadow:
    0 30px 60px -20px rgba(20, 40, 80, .15),
    0 8px 24px rgba(20, 40, 80, .06);
  border: 1px solid rgba(20, 40, 80, .04);
}

.auth-head { margin-bottom: 28px; }
.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: #0a1830;
  letter-spacing: .5px;
}
.auth-sub {
  margin-top: 8px;
  font-size: 13px;
  color: #7a8aa3;
}

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #4a5a78;
  letter-spacing: .5px;
}
.field-input {
  position: relative;
  display: flex;
  align-items: center;
  background: #f4f7fb;
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field-input:focus-within {
  border-color: #2b6bff;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(43, 107, 255, .12);
}
.field-ic {
  width: 18px; height: 18px;
  margin: 0 12px 0 14px;
  color: #8092ad;
  flex-shrink: 0;
}
.field-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 12px 14px 0;
  font-size: 14.5px;
  color: #0a1830;
  font-family: inherit;
}
.field-input input::placeholder { color: #a8b4c8; }
.field-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 14px;
  color: #8092ad;
  display: grid; place-items: center;
}
.field-toggle svg { width: 18px; height: 18px; }
.field-toggle:hover { color: #2b6bff; }

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-top: 2px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a5a78;
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 16px; height: 16px;
  accent-color: #2b6bff;
  cursor: pointer;
}
.link {
  color: #2b6bff;
  text-decoration: none;
  font-weight: 500;
}
.link:hover { text-decoration: underline; }

.auth-error {
  font-size: 13px;
  color: #d83a3a;
  background: rgba(216, 58, 58, .08);
  border: 1px solid rgba(216, 58, 58, .2);
  border-radius: 10px;
  padding: 10px 14px;
  margin: -4px 0 0;
}

.btn-submit {
  position: relative;
  margin-top: 8px;
  height: 48px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #2b6bff 0%, #1a4bd8 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 24px -8px rgba(43, 107, 255, .55);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  overflow: hidden;
}
.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -8px rgba(43, 107, 255, .6);
}
.btn-submit:hover:not(:disabled)::before { transform: translateX(100%); }
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { filter: grayscale(.4); cursor: not-allowed; opacity: .8; }
.btn-arrow { transition: transform .2s ease; }
.btn-submit:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }

.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
}
.muted { color: #94a3b8; }

.auth-tip {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8092ad;
  font-family: 'JetBrains Mono', monospace;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #29c485;
  box-shadow: 0 0 8px #29c485;
}

/* responsive */
@media (max-width: 1024px) {
  .brand-inner { padding: 44px 44px; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 880px) {
  .page { grid-template-columns: 1fr; }
  .brand { display: none; }
  .auth { background: linear-gradient(135deg, #050d1f, #0a1c3a); }
  .auth-tip { color: #8aa6cf; }
}
