/* 星流认证页轻量换皮（仅在 /login /register /reset 路径生效，100% 复用原版逻辑） */
html[data-xingliu-auth="1"] {
  --background: #f6f5f1;
  --foreground: #1a211f;
  --card: #ffffff;
  --card-foreground: #1a211f;
  --popover: #ffffff;
  --popover-foreground: #1a211f;
  --primary: #19453e;
  --primary-foreground: #ffffff;
  --secondary: #edf5f3;
  --secondary-foreground: #19453e;
  --muted: #f1efe8;
  --muted-foreground: #626d69;
  --accent: #edf5f3;
  --accent-foreground: #19453e;
  --border: #e3dfd4;
  --input: #d4cfc3;
  --ring: #19453e;
}

html.dark[data-xingliu-auth="1"] {
  --background: #0f1f1d;
  --foreground: #f2efe8;
  --card: #162b28;
  --card-foreground: #f2efe8;
  --popover: #162b28;
  --popover-foreground: #f2efe8;
  --primary: #d8b375;
  --primary-foreground: #122421;
  --secondary: #1e3834;
  --secondary-foreground: #e7c990;
  --muted: #1b332f;
  --muted-foreground: #9fb0aa;
  --accent: #1e3834;
  --accent-foreground: #e7c990;
  --border: rgba(216, 179, 117, 0.22);
  --input: rgba(216, 179, 117, 0.28);
  --ring: #d8b375;
}

html[data-xingliu-auth="1"] body {
  background-color: var(--background) !important;
  background-image:
    radial-gradient(ellipse 65% 55% at 15% 10%, rgba(25, 69, 62, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 88% 88%, rgba(198, 154, 85, 0.1) 0%, transparent 65%) !important;
  background-attachment: fixed;
  color: var(--foreground);
}

html.dark[data-xingliu-auth="1"] body {
  background-image:
    radial-gradient(ellipse 65% 55% at 15% 10%, rgba(216, 179, 117, 0.1) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 88% 88%, rgba(44, 116, 102, 0.16) 0%, transparent 65%) !important;
}

/* 顶部品牌标识衬线质感 */
html[data-xingliu-auth="1"] #root h1,
html[data-xingliu-auth="1"] #root h2,
html[data-xingliu-auth="1"] [data-slot="card-title"] {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  letter-spacing: 0.03em;
}

/* 登录/注册主卡片雅致层次与鎏金细顶边 */
html[data-xingliu-auth="1"] [data-slot="card"] {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-top: 3px solid var(--primary) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 30px rgba(20, 35, 32, 0.08), 0 2px 6px rgba(20, 35, 32, 0.04) !important;
}

html.dark[data-xingliu-auth="1"] [data-slot="card"] {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35) !important;
}

/* 输入框圆润质感与焦点环 */
html[data-xingliu-auth="1"] input {
  border-radius: 8px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

html[data-xingliu-auth="1"] input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(25, 69, 62, 0.12) !important;
}

html.dark[data-xingliu-auth="1"] input:focus {
  box-shadow: 0 0 0 3px rgba(216, 179, 117, 0.18) !important;
}

/* 主提交按钮质感 */
html[data-xingliu-auth="1"] button[type="submit"] {
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  transition: filter 0.15s ease, transform 0.1s ease !important;
}

html[data-xingliu-auth="1"] button[type="submit"]:hover:not(:disabled) {
  filter: brightness(1.06);
}

/* === 星流令牌分组二级联动选择器 (.xl-gp-*) === */
.xl-gp-box {
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 12px;
}
html.dark .xl-gp-box {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.xl-gp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 11px;
}
html.dark .xl-gp-head {
  color: #9ca3af;
}
.xl-gp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.xl-gp-tab {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.xl-gp-tab:hover {
  border-color: #19453e;
  color: #19453e;
}
.xl-gp-tab.is-active {
  background: #19453e;
  border-color: #19453e;
  color: #ffffff;
}
html.dark .xl-gp-tab {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #d1d5db;
}
html.dark .xl-gp-tab:hover {
  border-color: #d8b375;
  color: #d8b375;
}
html.dark .xl-gp-tab.is-active {
  background: #d8b375;
  border-color: #d8b375;
  color: #122421;
}
.xl-gp-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 132px;
  overflow-y: auto;
}
.xl-gp-item {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1f2937;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  line-height: 1.35;
}
.xl-gp-item:hover {
  border-color: #19453e;
  background: #edf5f3;
}
.xl-gp-item.is-selected {
  border-color: #19453e;
  background: #edf5f3;
  color: #19453e;
  font-weight: 600;
}
html.dark .xl-gp-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.6);
  color: #e5e7eb;
}
html.dark .xl-gp-item:hover {
  border-color: #d8b375;
  background: rgba(216, 179, 117, 0.14);
}
html.dark .xl-gp-item.is-selected {
  border-color: #d8b375;
  background: rgba(216, 179, 117, 0.2);
  color: #f3dfb8;
  font-weight: 600;
}
