:root {
  --login-bg: #050a18;
  --login-bg-2: #071426;
  --login-bg-3: #0b1024;
  --login-panel: rgba(15, 23, 42, 0.72);
  --login-panel-strong: rgba(15, 23, 42, 0.86);
  --login-border: rgba(148, 163, 184, 0.16);
  --login-border-strong: rgba(34, 211, 238, 0.28);
  --login-text: #f8fafc;
  --login-muted: #94a3b8;
  --login-soft: #b8c5d8;
  --login-dim: #64748b;
  --login-blue: #3b82f6;
  --login-blue-deep: #2563eb;
  --login-cyan: #22d3ee;
  --login-purple: #7c3aed;
  --login-green: #10b981;
  --login-amber: #f59e0b;
  --login-danger: #e11d48;
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-bg-strong: #ffffff;
  --card-text: #0f172a;
  --card-muted: #475569;
  --card-line: #dbe3ee;
  --card-soft: #f8fafc;
  --radius: 22px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; letter-spacing: 0; }
html { min-height: 100%; background: linear-gradient(90deg, var(--login-bg) 0 52%, #f8fafc 52% 100%); }
body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--login-text);
  background: transparent;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--login-bg) 0 52%, #f8fafc 52% 100%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  height: 100lvh;
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(440px, 48fr);
  overflow: hidden;
  isolation: isolate;
}
.admin-shell { grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr); }

.brand {
  --pointer-x: 48%;
  --pointer-y: 46%;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 100dvh;
  min-height: 100vh;
  height: 100%;
  padding: clamp(34px, 6.5vw, 88px) clamp(34px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.16), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(59, 130, 246, 0.13), transparent 34%),
    radial-gradient(circle at 48% 54%, rgba(16, 185, 129, 0.055), transparent 38%),
    linear-gradient(135deg, var(--login-bg) 0%, var(--login-bg-2) 50%, var(--login-bg-3) 100%);
}
.login-background-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: .46;
  pointer-events: none;
}
.brand::before,
.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.brand::before {
  background: linear-gradient(116deg, transparent 0 36%, rgba(34, 211, 238, .052) 47%, rgba(59, 130, 246, .034) 56%, transparent 72%);
  opacity: .32;
  transform: translateX(-18%);
  animation: brandBeam 10s var(--ease-out) infinite;
  z-index: 1;
}
.brand::after {
  background: linear-gradient(90deg, rgba(2, 6, 23, .36), transparent 28%, rgba(2, 6, 23, .2));
  mix-blend-mode: multiply;
  z-index: 1;
}
.brand-trend {
  position: absolute;
  right: -24%;
  bottom: 3%;
  left: -18%;
  z-index: 0;
  height: min(49vh, 470px);
  min-height: 310px;
  pointer-events: none;
  opacity: .96;
  -webkit-mask-image: radial-gradient(ellipse at 50% 54%, #000 0 62%, transparent 86%);
  mask-image: radial-gradient(ellipse at 50% 54%, #000 0 62%, transparent 86%);
}
.brand-trend svg {
  width: 132%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 50%;
  animation: trendDrift 24s ease-in-out infinite;
}
.trend-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.trend-line-main {
  stroke: url(#loginTrendMain);
  stroke-width: 1.9;
  opacity: .27;
  filter: url(#loginTrendGlow);
}
.trend-line-avg {
  stroke: url(#loginTrendAvg);
  stroke-width: 1.35;
  opacity: .16;
  filter: url(#loginTrendGlow);
}
.trend-line-main-flow {
  stroke: url(#loginTrendMain);
  stroke-width: 2;
  opacity: .24;
  filter: url(#loginTrendGlow);
  stroke-dasharray: 120 520;
  stroke-dashoffset: 0;
  animation: trendDash 11s linear infinite;
}
.trend-line-avg-flow {
  stroke: url(#loginTrendAvg);
  stroke-width: 1.45;
  opacity: .15;
  filter: url(#loginTrendGlow);
  stroke-dasharray: 90 520;
  stroke-dashoffset: 0;
  animation: trendDash 13s linear infinite reverse;
}
.trend-points circle {
  fill: #22d3ee;
  opacity: .28;
  filter: url(#loginTrendGlow);
  transform-box: fill-box;
  transform-origin: center;
  animation: trendPulse 5.8s ease-in-out infinite;
}
.trend-points circle:nth-child(2) { animation-delay: -1.9s; }
.trend-points circle:nth-child(3) { animation-delay: -3.6s; }
.brand-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(148, 163, 184, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .022) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at 46% 50%, black, transparent 78%);
}
.brand-orb {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  filter: blur(42px);
  pointer-events: none;
  opacity: .28;
  animation: orbFloat 12s ease-in-out infinite;
}
.brand-orb-a { width: 360px; height: 360px; left: -128px; top: 11%; background: rgba(34, 211, 238, .14); }
.brand-orb-b { width: 440px; height: 440px; right: -156px; bottom: 4%; background: rgba(59, 130, 246, .11); animation-delay: -3.6s; }
.brand-watermark {
  position: absolute;
  z-index: 1;
  right: clamp(-118px, -7vw, -36px);
  top: 50%;
  transform: translate3d(0, -50%, 0);
  color: rgba(34, 211, 238, .048);
  font-size: clamp(250px, 38vw, 560px);
  line-height: .78;
  font-weight: 950;
  letter-spacing: -.105em;
  text-shadow: 0 0 54px rgba(34, 211, 238, .055);
  pointer-events: none;
  user-select: none;
  animation: watermarkDrift 16s ease-in-out infinite;
}
.brand-spotlight {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 420px;
  height: 420px;
  transform: translate3d(calc(var(--pointer-x) - 210px), calc(var(--pointer-y) - 210px), 0);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, .145), rgba(59, 130, 246, .06) 40%, rgba(34, 211, 238, 0) 74%);
  filter: blur(10px);
  mix-blend-mode: screen;
  opacity: .66;
  pointer-events: none;
  transition: transform .18s var(--ease-out), opacity .22s var(--ease-out);
}
.brand-content {
  position: relative;
  z-index: 3;
  width: min(560px, 100%);
  min-width: 0;
  margin-left: clamp(28px, 8.4vw, 128px);
}
.brand-content::after {
  content: none;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
  border-radius: var(--radius-sm);
}
.brand-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(34, 211, 238, .18), rgba(15, 23, 42, .74));
  color: #ccfbff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 22px rgba(34,211,238,.08);
  font-size: 22px;
  font-weight: 950;
}
.brand-logo strong,
.brand-logo small { display: block; }
.brand-logo strong { color: #fff; font-size: clamp(42px, 3.7vw, 56px); font-weight: 950; line-height: 1.02; letter-spacing: -.036em; text-wrap: balance; }
.brand-logo small { margin-top: 10px; color: var(--login-soft); font-size: clamp(15px, 1.18vw, 18px); font-weight: 850; }
.brand-content > p,
.brand-kicker,
.card-kicker {
  margin: 0 0 14px;
  color: var(--login-cyan);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.brand h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 18px 42px rgba(2, 6, 23, .36);
}
.brand-subtitle {
  margin: 15px 0 0 !important;
  color: #eff6ff !important;
  font-size: clamp(17px, 1.7vw, 21px) !important;
  font-weight: 850 !important;
  line-height: 1.38;
  text-transform: none !important;
}
.brand-lede,
.brand-content > span:not(.brand-mark) { display: none; }
.brand-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0; }
.brand-tags b {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(34, 211, 238, .12);
  border-radius: var(--radius-sm);
  color: #e0faff;
  background: rgba(15, 23, 42, .28);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 850;
}
.brand-trust {
  margin: 22px 0 0 !important;
  color: rgba(203, 213, 225, .82) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.5;
  text-transform: none !important;
}
.brand-metrics {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  max-width: 640px;
}
.brand-metrics div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, .48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
}
.brand-metrics dt { color: var(--login-soft); font-size: 12px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-metrics dd { margin: 8px 0 0; color: #fff; font-size: 24px; font-weight: 950; letter-spacing: -.03em; }

.brand-logo,
.brand-kicker,
.brand h1,
.brand-subtitle,
.brand-lede,
.brand-tags,
.brand-trust,
.brand-metrics { animation: brandItemEnter .56s var(--ease-out) both; }
.brand-kicker { animation-delay: .04s; }
.brand h1 { animation-delay: .08s; }
.brand-subtitle { animation-delay: .12s; }
.brand-lede { animation-delay: .16s; }
.brand-tags { animation-delay: .14s; }
.brand-trust { animation-delay: .22s; }
.brand-metrics { animation-delay: .2s; }

.login-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(24px, 5vw, 60px);
  background:
    radial-gradient(circle at 28% 20%, rgba(34, 211, 238, .12), transparent 28%),
    radial-gradient(circle at 84% 78%, rgba(124, 58, 237, .09), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f8fafc 46%, #eef4fb 100%);
}
.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 6, 23, .08), transparent 18%);
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(452px, 100%);
  display: grid;
  gap: 16px;
  padding: 40px;
  margin-top: -20px;
  border: 1px solid rgba(226, 232, 240, .76);
  border-radius: 24px;
  background: rgba(255, 255, 255, .975);
  color: var(--card-text);
  box-shadow: 0 26px 68px rgba(15, 23, 42, .115);
  backdrop-filter: blur(12px);
  animation: cardEnter .54s var(--ease-out) .08s both;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.54), transparent 34%);
}
.login-card > * { position: relative; z-index: 1; }
.login-card,
.login-card * { min-width: 0; }
.login-card h2 { margin: -2px 0 0; color: var(--card-text); font-size: 32px; line-height: 1.12; font-weight: 950; letter-spacing: -.025em; }
.card-copy { margin: -4px 0 8px; color: var(--card-muted); font-size: 14px; line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-kicker { color: #0891b2; }
.login-card > h2,
.login-card > .card-copy,
.login-card > .stack-form,
.login-card > .login-helper-row,
.login-card > .register-entry {
  animation: formItemEnter .46s var(--ease-out) both;
}
.login-card > h2 { animation-delay: .16s; }
.login-card > .card-copy { animation-delay: .2s; }
.login-card > .stack-form { animation-delay: .25s; }
.login-card > .login-helper-row { animation-delay: .31s; }
.login-card > .register-entry { animation-delay: .36s; }
.stack-form { display: grid; gap: 12px; }
.stack-form,
.field,
.login-card input,
.login-card .primary-login-btn,
.login-card .guest-mini-btn { width: 100%; max-width: 100%; }
.compact-form { padding-top: 12px; border-top: 1px solid var(--card-line); }
label,
.field { display: grid; gap: 8px; color: #334155; font-size: 13px; font-weight: 850; }
.field > span { display: inline-flex; align-items: center; min-height: 18px; }
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  padding: 12px 13px;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out);
}
input::placeholder { color: #64748b; opacity: .96; }
input:hover { border-color: #b8c5d8; }
input:focus { border-color: var(--login-blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15), 0 0 0 1px rgba(34, 211, 238, .12); }
input.is-invalid { border-color: var(--login-danger); background: #fffafa; box-shadow: 0 0 0 3px rgba(225, 29, 72, .12); }
input:disabled {
  cursor: not-allowed;
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #f8fafc;
  box-shadow: none;
}
.field-error { min-height: 14px; margin-top: -3px; color: var(--login-danger); font-size: 12px; line-height: 1.35; font-weight: 800; }
.field-error:empty { visibility: hidden; }
.form-row,
.register-entry,
.login-helper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkbox-line { display: inline-flex; align-items: center; gap: 8px; color: #475569; font-weight: 750; }
.checkbox-line input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--login-blue);
}
.forgot-link,
.text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: var(--radius-sm);
  color: var(--login-blue-deep);
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.forgot-link:hover,
.text-btn:hover { color: #075985; }
.primary-login-btn,
.guest-mini-btn,
.reserved-login button,
.icon-close {
  border-radius: var(--radius-sm);
  transition: transform .18s var(--ease-out), background .18s var(--ease-out), border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), color .18s var(--ease-out), filter .18s var(--ease-out), opacity .18s var(--ease-out);
}
.primary-login-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--login-blue), var(--login-blue-deep) 58%, var(--login-purple));
  box-shadow: 0 10px 22px rgba(37, 99, 235, .2);
  font-weight: 950;
}
.primary-login-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255,255,255,.18) 50%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .48s var(--ease-out);
}
.primary-login-btn:hover { filter: brightness(1.035); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(37, 99, 235, .24); }
.primary-login-btn:hover::after { transform: translateX(120%); }
.primary-login-btn:active,
.guest-mini-btn:active,
.reserved-login button:active,
.icon-close:active { transform: translateY(1px) scale(.99); box-shadow: none; }
.primary-login-btn:disabled,
.guest-mini-btn:disabled { cursor: not-allowed; opacity: .72; transform: none; box-shadow: none; }
.primary-login-btn.is-loading,
.guest-mini-btn.is-loading { pointer-events: none; }
.primary-login-btn.is-loading::before,
.guest-mini-btn.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin .72s linear infinite;
}
.login-helper-row { min-height: 34px; justify-content: flex-end; }
.guest-message:not(:empty) { margin-right: auto; }
#loginMessage:empty,
#message:empty,
#registerMessage:empty,
#adminMessage:empty { display: none; }
.guest-mini-btn {
  flex: 0 0 auto;
  min-width: auto;
  min-height: 42px;
  padding: 8px 10px;
  color: #075985;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 950;
}
.guest-mini-btn:hover { color: #0369a1; border-color: #bae6fd; background: #ecfeff; transform: translateY(-1px); box-shadow: none; }
.reserved-login { display: none; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 4px; }
.reserved-login button { min-height: 44px; color: #334155; border: 1px solid #d9e2ef; background: #fff; font-weight: 850; }
.reserved-login button:hover { border-color: #93c5fd; background: #f8fafc; color: #0f172a; box-shadow: 0 8px 16px rgba(15, 23, 42, .06); }
.register-entry { padding-top: 12px; border-top: 1px solid var(--card-line); color: var(--card-muted); font-size: 13px; }
.small { margin: 0; color: #64748b; font-size: 12px; line-height: 1.6; }
.form-message,
#message,
#loginMessage,
#registerMessage,
#adminMessage { min-height: 18px; margin: 0; color: var(--login-danger); font-size: 12px; line-height: 1.5; font-weight: 800; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(10px);
}
.modal-card {
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, .97);
  color: var(--card-text);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .34);
  animation: cardEnter .28s var(--ease-out) both;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head p { margin: 0 0 6px; color: var(--login-blue-deep); font-size: 11px; font-weight: 950; text-transform: uppercase; }
.modal-head h2 { margin: 0; color: var(--card-text); }
.icon-close { width: 36px; height: 36px; padding: 0; color: var(--card-text); background: #eaf0f7; font-size: 20px; line-height: 1; }
.icon-close:hover { background: #dbe3ee; }
.hidden { display: none !important; }
button:focus-visible,
a:focus-visible,
input:focus-visible { outline: 2px solid rgba(34, 211, 238, .72); outline-offset: 3px; }

@keyframes brandBeam { 0%, 100% { transform: translateX(-18%); opacity: .18; } 50% { transform: translateX(18%); opacity: .42; } }
@keyframes orbFloat { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(18px, -22px, 0) scale(1.035); } }
@keyframes watermarkDrift {
  0%, 100% { transform: translate3d(0, -50%, 0) scale(1); opacity: .9; }
  50% { transform: translate3d(-18px, -52%, 0) scale(1.018); opacity: .66; }
}
@keyframes trendDrift {
  0% { transform: translate3d(-7%, 0, 0) scale(1.01); opacity: .58; }
  50% { transform: translate3d(-1%, -1.4%, 0) scale(1.018); opacity: .74; }
  100% { transform: translate3d(5%, 0, 0) scale(1.01); opacity: .58; }
}
@keyframes trendDash { to { stroke-dashoffset: -640; } }
@keyframes trendPulse {
  0%, 100% { transform: scale(.82); opacity: .16; }
  46% { transform: scale(1.28); opacity: .3; }
}
@keyframes brandItemEnter { from { opacity: .92; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardEnter { from { opacity: .92; transform: translate3d(18px, 8px, 0) scale(.992); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes formItemEnter { from { opacity: .88; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .login-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, .85fr); }
  .brand { padding-inline: clamp(26px, 5vw, 56px); }
  .brand-content { margin-left: clamp(8px, 4vw, 42px); }
  .brand-watermark { right: clamp(-112px, -9vw, -56px); font-size: clamp(190px, 34vw, 360px); }
  .brand-logo strong { font-size: clamp(34px, 3.5vw, 44px); }
  .brand-mark { width: 64px; height: 64px; }
  .brand-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 470px; }
}
@media (max-width: 900px) {
  html { background: #f8fafc; }
  body { overflow: auto; background: #f8fafc; }
  body::before { background: #f8fafc; }
  .login-shell,
  .admin-shell { min-height: 100dvh; min-height: 100vh; height: auto; grid-template-columns: 1fr; overflow: visible; }
  .brand { min-height: 216px; height: auto; align-items: start; padding: 22px 20px 62px; }
  .brand-content { width: 100%; margin-left: 0; }
  .brand-watermark { right: -54px; top: 43%; font-size: 178px; opacity: .36; animation-duration: 18s; }
  .brand-spotlight { display: none; }
  .brand-orb { opacity: .16; filter: blur(36px); }
  .brand-trend { left: -30%; right: -34%; bottom: 9%; height: 174px; min-height: 150px; opacity: .34; }
  .trend-line-main { opacity: .095; stroke-width: 1.6; }
  .trend-line-main-flow { opacity: .085; stroke-width: 1.65; }
  .trend-line-avg,
  .trend-line-avg-flow,
  .trend-points { display: none; }
  .login-background-canvas { opacity: .16; }
  .brand-logo { gap: 12px; margin-bottom: 22px; }
  .brand-mark { width: 48px; height: 48px; font-size: 16px; }
  .brand-logo strong { font-size: clamp(26px, 7.2vw, 31px); line-height: 1.04; letter-spacing: -.032em; }
  .brand-logo small { margin-top: 5px; font-size: 12px; }
  .brand h1 { display: none; }
  .brand-subtitle { display: none; }
  .brand-lede,
  .brand-content > span:not(.brand-mark) { font-size: 15px; }
  .brand-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-tags { margin-top: 0; }
  .brand-tags b { min-height: 31px; padding-inline: 10px; font-size: 12px; }
  .brand-trust { display: none; }
  .login-panel { align-items: start; margin-top: -52px; padding: 0 16px 24px; background: linear-gradient(180deg, rgba(248,250,252,0), #f8fafc 34%, #eef4fb 100%); }
  .login-panel::before { display: none; }
  .login-card { width: min(100%, 358px); max-width: 100%; justify-self: start; padding: 26px; margin-top: 0; animation-name: cardEnterMobile; }
}
@media (max-width: 560px) {
  .login-shell,
  .admin-shell,
  .brand,
  .login-panel { width: 100vw; max-width: 100vw; }
  .brand { min-height: 212px; padding-inline: 16px; }
  .brand-logo { margin-bottom: 20px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-logo strong { font-size: clamp(24px, 7vw, 29px); }
  .brand-logo small { font-size: 11px; }
  .brand h1 { max-width: 100%; font-size: clamp(34px, 10.4vw, 41px); }
  .brand-lede, .brand-content > span:not(.brand-mark) { line-height: 1.62; }
  .brand-tags { gap: 8px; }
  .brand-tags b { min-height: 32px; font-size: 12px; }
  .brand-metrics { display: none; }
  .login-panel { display: block; padding-inline: 16px; overflow: hidden; }
  .login-card { width: 100%; max-width: 358px; margin-inline: 0; padding: 24px; border-radius: 20px; }
  .login-card > * { width: 100%; }
  .login-card h2 { font-size: 26px; }
  .card-copy { white-space: normal; }
  .reserved-login { grid-template-columns: 1fr; }
  .form-row,
  .register-entry { align-items: center; display: flex; }
  .login-helper-row { display: block; min-height: auto; }
  .guest-mini-btn { width: 100%; justify-content: center; min-height: 40px; border-color: #bae6fd; background: #f8fafc; }
}
@keyframes cardEnterMobile { from { opacity: .92; transform: translateY(12px) scale(.994); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition: none !important; }
  .login-background-canvas { display: none; }
  .brand-spotlight { display: none; }
  .brand-trend { opacity: .18; }
  .brand-watermark { opacity: .42; }
}


/* 云汇商品工作台：白底极简登录入口覆盖层 */
:root {
  --yunhui-blue: #2563eb;
  --yunhui-ink: #0f172a;
  --yunhui-muted: #64748b;
  --yunhui-line: #e2e8f0;
  --yunhui-soft: #f8fafc;
}
html { background: #f8fafc; }
body { color: var(--yunhui-ink); background: #f8fafc; }
body::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, .10), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(14, 165, 233, .08), transparent 28%),
    linear-gradient(90deg, #f8fafc 0 52%, #ffffff 52% 100%);
}
.login-shell { grid-template-columns: minmax(0, 48fr) minmax(420px, 52fr); }
.brand {
  color: var(--yunhui-ink);
  background:
    radial-gradient(circle at 25% 15%, rgba(37,99,235,.10), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border-right: 1px solid var(--yunhui-line);
}
.brand-grid { opacity: .18; background-image: linear-gradient(rgba(37,99,235,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.08) 1px, transparent 1px); }
.brand-trend,
.login-background-canvas,
.brand-orb,
.brand-spotlight { opacity: .18; }
.brand-watermark { color: rgba(37,99,235,.045); }
.brand-content { margin-left: clamp(32px, 8vw, 120px); max-width: 520px; }
.brand-logo { color: var(--yunhui-ink); align-items: center; }
.brand-logo strong { color: var(--yunhui-ink); font-size: clamp(32px, 4.8vw, 50px); line-height: 1.08; letter-spacing: -.04em; }
.brand-logo small { color: var(--yunhui-muted); font-size: 15px; margin-top: 10px; }
.brand-mark { background: #ffffff; color: var(--yunhui-blue); border-color: #bfdbfe; box-shadow: 0 12px 28px rgba(37,99,235,.10); }
.brand-tags, .brand-trust, .reserved-login { display: none !important; }
.login-panel { background: linear-gradient(180deg, #ffffff, #f8fafc); }
.login-card {
  width: min(440px, calc(100% - 40px));
  border-radius: 22px;
  border: 1px solid var(--yunhui-line);
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 56px rgba(15,23,42,.08);
  padding: 40px;
}
.login-card h2 { font-size: 34px; letter-spacing: -.03em; color: var(--yunhui-ink); }
.card-copy { color: var(--yunhui-muted); }
.field span { color: #334155; }
.field input {
  min-height: 48px;
  border-radius: 12px;
  border-color: #dbe3ee;
  color: var(--yunhui-ink);
  background: #fff;
}
.field input::placeholder { color: #94a3b8; }
.field input:focus { border-color: var(--yunhui-blue); box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.primary-login-btn {
  height: 50px;
  border-radius: 12px;
  background: var(--yunhui-blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37,99,235,.18);
}
.primary-login-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.primary-login-btn:active { transform: translateY(0) scale(.99); box-shadow: 0 8px 18px rgba(37,99,235,.14); }
.guest-mini-btn { border-radius: 10px; color: var(--yunhui-blue); border-color: #bfdbfe; background: #eff6ff; }
.text-btn, .forgot-link { color: var(--yunhui-blue); }

@media (max-width: 900px) {
  body::before { background: #f8fafc; }
  .login-shell { display: block; height: auto; min-height: 100vh; overflow: visible; }
  .brand { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--yunhui-line); display: grid; align-items: center; }
  .brand-content { margin: 0; padding: 28px 22px 56px; max-width: none; }
  .brand-logo strong { font-size: 28px; }
  .brand-logo small { font-size: 13px; }
  .login-panel { min-height: auto; padding: 0 0 28px; }
  .login-card { width: calc(100% - 32px); margin: -34px auto 0; padding: 26px; }
}

/* === 2026-06 compact white login high-fidelity override === */
:root {
  --login-bg: #f7f8fa;
  --login-surface: #ffffff;
  --login-border: #e5e7eb;
  --login-border-soft: #eef2f7;
  --login-text: #111827;
  --login-muted: #6b7280;
  --login-blue: #2563eb;
  --login-radius: 22px;
  --login-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

html,
body {
  min-height: 100%;
  background: #f7f8fa;
  color: var(--login-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 4%, rgba(244, 114, 182, .10), transparent 28%),
    radial-gradient(circle at 77% 84%, rgba(6, 182, 212, .14), transparent 32%),
    radial-gradient(circle at 60% 74%, rgba(245, 158, 11, .12), transparent 26%),
    radial-gradient(circle at 42% 20%, rgba(37, 99, 235, .06), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.login-shell.client-shell {
  position: relative;
  display: block;
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
}

.brand {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  height: 76px;
  min-height: 76px;
  padding: 0 28px;
  background: transparent !important;
  border: 0 !important;
  color: var(--login-text);
  overflow: visible;
}

.brand-trend,
.login-background-canvas,
.brand-grid,
.brand-orb,
.brand-watermark,
.brand-spotlight,
.brand::before,
.brand::after {
  display: none !important;
}

.brand-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  opacity: 1;
  animation: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  color: var(--login-text);
  text-decoration: none;
}

.brand-mark,
.login-center-brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.02em;
  box-shadow: none;
}

.brand-logo strong { display:block; font-size: 16px; line-height: 1.1; color:#111827; letter-spacing: -.02em; }
.brand-logo small { display:block; margin-top: 2px; font-size: 11px; line-height: 1.2; color:#6b7280; }

.login-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-login-link,
.top-register-btn {
  min-width: 58px;
  height: 36px;
  border-radius: 13px;
  border: 1px solid var(--login-border);
  background: rgba(255,255,255,.78);
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}

.top-register-btn {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.login-panel {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 116px 20px 60px;
  background: transparent;
}

.login-center-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #111827;
}

.login-center-brand span {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fff;
  color: #2563eb;
  border: 1px solid var(--login-border);
  box-shadow: 0 8px 18px rgba(15,23,42,.04);
}

.login-center-brand strong { font-size: 18px; line-height: 1; letter-spacing: -.02em; }

.login-card.account-card {
  width: min(420px, calc(100vw - 32px));
  min-height: 0;
  padding: 34px 34px 30px;
  border-radius: 24px;
  border: 1px solid var(--login-border);
  background: rgba(255,255,255,.92);
  box-shadow: var(--login-shadow);
  backdrop-filter: blur(18px);
  animation: loginCardIn .55s cubic-bezier(.16,1,.3,1) both;
}

@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.login-card h2 {
  margin: 2px 0 30px;
  text-align: center;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.05em;
  color: #111827;
}

.login-card .card-copy { display: none; }
.stack-form { gap: 18px; }
.field { gap: 8px; }
.field span { font-size: 13px; font-weight: 700; color:#111827; }
.field input {
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--login-border);
  background: #fff;
  color: #111827;
  font-size: 13px;
  padding: 0 14px;
  box-shadow: none;
}
.field input::placeholder { color: #a3afbf; }
.field input:hover { border-color: #cbd5e1; }
.field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
  outline: none;
}
.field-error { min-height: 14px; font-size: 11px; }
.form-row { margin-top: -2px; font-size: 12px; color:#6b7280; }
.checkbox-line { display: none; }
.forgot-link { margin-left: auto; color:#6b7280; text-decoration: none; }
.forgot-link:hover { color:#2563eb; }
.primary-login-btn {
  height: 42px;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
}
.primary-login-btn:hover { transform: translateY(-1px); background:#111; box-shadow:0 14px 28px rgba(0,0,0,.13); }
.primary-login-btn:active { transform: translateY(0); box-shadow:0 8px 16px rgba(0,0,0,.10); }
.form-message { min-height: 18px; margin-top: 10px; font-size: 12px; text-align:center; }
.login-helper-row { display: none; }
.register-entry {
  justify-content: center;
  margin-top: 18px;
  padding-top: 0;
  border: 0;
  font-size: 13px;
  color:#94a3b8;
}
.text-btn { color:#64748b; font-size: 13px; font-weight: 600; }
.text-btn:hover { color:#2563eb; }
.modal-card { border-radius: 22px; border:1px solid var(--login-border); box-shadow: var(--login-shadow); }

@media (max-width: 640px) {
  .brand { height: 64px; min-height: 64px; padding: 0 16px; }
  .brand-logo small { display:none; }
  .login-top-actions { gap: 8px; }
  .top-login-link, .top-register-btn { min-width: 52px; height: 32px; border-radius: 11px; }
  .login-panel { justify-content: flex-start; padding: 96px 16px 40px; gap: 18px; }
  .login-card.account-card { padding: 28px 24px; }
}
