/* KK 登录页外观。表单、记住密码、两步验证仍走原来的组件。 */
.login-split {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100svh;
  height: 100svh;
  align-items: stretch !important;
  justify-items: stretch !important;
  display: grid !important;
  grid-template-columns: 64% 36%;
  background-color: transparent;
  background-image: none;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
.min-h-screen:has(.login-split) {
  background: transparent !important;
}
.login-split > div:first-child {
  position: relative;
  background: none !important;
  min-height: 100svh;
}
.login-split > div:first-child::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(460px, 52%);
  aspect-ratio: 1.625;
  transform: translate(-50%, -50%);
  background: url(/lamp-mark.png?v=1) center / contain no-repeat;
  pointer-events: none;
}
.login-split > div:first-child > * {
  display: none !important;
}
.login-split > div:last-child {
  position: relative;
  min-height: 100svh;
  background: linear-gradient(90deg, transparent, rgba(18, 10, 6, .35) 18%, rgba(14, 9, 6, .72) 42%) !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px 64px !important;
}
.login-split.kk-login-main .sm\:w-\[380px\] {
  width: 100% !important;
  max-width: 360px !important;
}
.login-split input {
  height: 50px !important;
  border: 1px solid rgba(201, 168, 112, 0.45) !important;
  border-radius: 9px !important;
  background: rgba(32, 20, 12, .78) !important;
  color: #f4efe6 !important;
  padding: 0 15px !important;
  font-size: 15px !important;
  box-shadow: none !important;
}
.login-split input:focus {
  border-color: #c9b28a !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 112, 0.18) !important;
  outline: none !important;
}
.login-split input::placeholder {
  color: rgba(244, 239, 230, 0.42);
}
.login-split label {
  color: #e7d3ae !important;
  font-size: 13px !important;
}
.login-split button[type="submit"] {
  height: 50px !important;
  border: 1px solid #c9b28a !important;
  border-radius: 9px !important;
  background: linear-gradient(105deg, #8d6840, #a67d4c) !important;
  color: #161410 !important;
  letter-spacing: 4px;
  font-weight: 600;
  box-shadow: 0 7px 26px rgba(141, 104, 64, 0.28) !important;
}
.login-split button[type="submit"]:hover {
  filter: brightness(1.12);
}
.login-split input[type="checkbox"] {
  accent-color: #c9b28a;
  width: 15px;
  height: 15px;
}

.login-split.kk-login-main .text-center {
  text-align: left !important;
}
.login-split.kk-login-main h1 {
  color: #f4efe6 !important;
  font-size: 30px !important;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 0 0 10px;
}
.login-split.kk-login-main h1::before {
  content: "SHENDENG";
  display: block;
  color: #c9b28a;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 400;
  margin-bottom: 15px;
}
.login-split.kk-login-main h1 + p {
  color: rgba(244, 239, 230, 0.55) !important;
  font-size: 14px !important;
  margin: 0 0 38px !important;
}
.login-split.kk-login-main form {
  display: flex;
  flex-direction: column;
}
.login-split.kk-login-main form > div:nth-child(2) {
  position: relative;
}
.login-split.kk-login-main form > div:nth-child(2) button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: #c9b28a;
  font-size: 12px;
  z-index: 2;
}
.login-split.kk-login-main form > div:nth-child(2) button svg {
  display: none;
}
.login-split.kk-login-main form > div:has(input.input-masked) button::after {
  content: "显示";
}
.login-split.kk-login-main form > div:not(:has(input.input-masked)) button::after {
  content: "隐藏";
}
.login-split.kk-login-main form > div:nth-child(2) input {
  padding-right: 65px !important;
}
.login-split.kk-login-main button[type="submit"] svg {
  display: none;
}
.kk-tg-login {
  background: rgba(32, 20, 12, .78) !important;
  color: #f4efe6 !important;
  border-color: rgba(201, 168, 112, 0.45) !important;
}
.login-split.kk-login-main form::after {
  content: "神灯科技 · 管理平台";
  display: block;
  font-size: 12px;
  color: rgba(201, 168, 112, 0.72);
  text-align: center;
  margin-top: 25px;
  line-height: 1.8;
}
.login-split.kk-login-main > div:last-child::after {
  content: "神灯科技";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  text-align: center;
  font-size: 11px;
  color: rgba(201, 168, 112, 0.55);
  letter-spacing: 1px;
  pointer-events: none;
}

@media (min-aspect-ratio: 2/1) {
  .login-split {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
  }
}
@media (max-width: 1023px) {
  .login-split {
    display: flex !important;
    flex-direction: column;
    background-image: none !important;
  }
  .login-split > div:first-child {
    display: block !important;
    height: 42svh;
    min-height: 0 !important;
    flex: none;
    background: transparent !important;
  }
  .login-split > div:last-child {
    background: #100c0a !important;
    flex: 1;
    padding: 26px 28px 28px !important;
  }
  .login-split.kk-login-main > div:last-child::after {
    position: static;
    display: block;
    padding: 8px 0 0;
  }
  .login-split.kk-login-main h1 {
    font-size: 26px !important;
  }
}

/* 登录后的页面：暖金夜色。删除和状态红不改。 */
html[data-kk-theme="dark"] {
  --color-blue-300: #e7d3ae;
  --color-blue-400: #c9b28a;
  --color-blue-500: #8d6840;
  --color-blue-600: #a67d4c;
  --color-blue-700: #6e5030;
  --color-blue-800: #5a4030;
  --color-blue-950: #24180f;
  --color-cyan-300: #e7d3ae;
  --color-cyan-400: #c9b28a;
  --color-cyan-500: #c9b28a;
  --color-cyan-600: #a67d4c;
  --color-cyan-700: #6e5030;
  --color-sky-400: #c9b28a;
  --color-sky-500: #c9b28a;
  --color-indigo-300: #e7d3ae;
  --color-indigo-500: #8d6840;
  --color-indigo-600: #a67d4c;
  --color-indigo-700: #6e5030;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) {
  --background: rgba(16, 10, 7, 0.42);
  --foreground: #f4efe6;
  --card: rgba(18, 12, 8, 0.58);
  --card-foreground: #f4efe6;
  --popover: rgba(16, 11, 8, 0.94);
  --popover-foreground: #f4efe6;
  --primary: #c9b28a;
  --primary-foreground: #161410;
  --secondary: #24180f;
  --secondary-foreground: #f4efe6;
  --muted: #1c140f;
  --muted-foreground: #b7a48a;
  --accent: #2a1c14;
  --accent-foreground: #f4efe6;
  --border: #5a4634;
  --input: #5a4634;
  --ring: #c9b28a;
  --sidebar: #0c0907;
  --sidebar-foreground: #f4efe6;
  --sidebar-primary: #c9b28a;
  --sidebar-primary-foreground: #161410;
  --sidebar-accent: #2a1c14;
  --sidebar-accent-foreground: #f4efe6;
  --sidebar-border: #3a2a1c;
  --sidebar-ring: #c9b28a;
  --sidebar-background: 24 30% 6%;
  --chart-1: #c9b28a;
  --chart-2: #a67d4c;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: transparent;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) body > .min-h-screen,
html[data-kk-theme="dark"]:not(:has(.login-split)) body > .min-h-svh {
  background: transparent !important;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .bg-\[\#0d1117\],
html[data-kk-theme="dark"]:not(:has(.login-split)) .bg-\[\#0d1117\]\/80,
html[data-kk-theme="dark"]:not(:has(.login-split)) .bg-\[\#0d1117\]\/50,
html[data-kk-theme="dark"]:not(:has(.login-split)) .bg-\[\#161b22\],
html[data-kk-theme="dark"]:not(:has(.login-split)) .hover\:bg-\[\#161b22\]:hover,
html[data-kk-theme="dark"]:not(:has(.login-split)) .hover\:bg-\[\#1c2333\]:hover,
html[data-kk-theme="dark"]:not(:has(.login-split)) .bg-card,
html[data-kk-theme="dark"]:not(:has(.login-split)) .bg-background {
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(32, 20, 12, 0.46), rgba(14, 9, 6, 0.2)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 232, 200, 0.08);
  backdrop-filter: blur(14px) saturate(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .shadow-lg {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 232, 200, 0.08) !important;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .bg-\[\#1c2128\],
html[data-kk-theme="dark"]:not(:has(.login-split)) .bg-\[\#21262d\],
html[data-kk-theme="dark"]:not(:has(.login-split)) .hover\:bg-\[\#1c2128\]:hover,
html[data-kk-theme="dark"]:not(:has(.login-split)) .bg-\[\#262c36\],
html[data-kk-theme="dark"]:not(:has(.login-split)) .bg-\[\#2d333b\] {
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(42, 28, 18, 0.55), rgba(20, 12, 8, 0.32)) !important;
  backdrop-filter: blur(14px) saturate(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .text-\[\#e6edf3\],
html[data-kk-theme="dark"]:not(:has(.login-split)) .hover\:text-\[\#e6edf3\]:hover {
  color: #f4efe6 !important;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .text-\[\#c9d1d9\] {
  color: #e7d3ae !important;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .text-\[\#8b949e\],
html[data-kk-theme="dark"]:not(:has(.login-split)) .text-\[\#6e7681\] {
  color: rgba(244, 239, 230, 0.55) !important;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .text-3xl,
html[data-kk-theme="dark"]:not(:has(.login-split)) h1,
html[data-kk-theme="dark"]:not(:has(.login-split)) h2 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  letter-spacing: 0.04em;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .border-l-red-500 { border-left-color: #c9b28a !important; }
html[data-kk-theme="dark"]:not(:has(.login-split)) .border-l-green-500 { border-left-color: #8d6840 !important; }
html[data-kk-theme="dark"]:not(:has(.login-split)) .border-l-orange-500 { border-left-color: #dcc9a4 !important; }
html[data-kk-theme="dark"]:not(:has(.login-split)) .border-l-purple-500 { border-left-color: #a67d4c !important; }
html[data-kk-theme="dark"]:not(:has(.login-split)) .border-l-blue-500,
html[data-kk-theme="dark"]:not(:has(.login-split)) .border-l-cyan-500 { border-left-color: #e7d3ae !important; }
html[data-kk-theme="dark"]:not(:has(.login-split)) button,
html[data-kk-theme="dark"]:not(:has(.login-split)) [role="tab"] {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .shadow-2xl,
html[data-kk-theme="dark"]:not(:has(.login-split)) [role="dialog"] {
  background-color: rgba(16, 11, 8, 0.94) !important;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
html[data-kk-theme="dark"]:not(:has(.login-split)) canvas,
html[data-kk-theme="dark"]:not(:has(.login-split)) .bg-black {
  background-color: #070605 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .border-\[\#30363d\],
html[data-kk-theme="dark"]:not(:has(.login-split)) .\!border-\[\#30363d\] {
  border-color: rgba(201, 168, 112, 0.32) !important;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .border-\[\#21262d\],
html[data-kk-theme="dark"]:not(:has(.login-split)) .divide-\[\#21262d\] > :not(:last-child) {
  border-color: #3a2a1c !important;
}
button img[src*="kk-logo.png"],
button img[src*="lamp-icon.png"] {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  border-radius: 4px;
}
button img[src*="kk-logo.png"] + span,
button img[src*="lamp-icon.png"] + span {
  overflow: visible !important;
  text-overflow: clip !important;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .peer\/menu-button[data-active="true"] {
  color: #e7d3ae !important;
  background-color: rgba(201, 168, 112, .16) !important;
  border-color: rgba(201, 168, 112, .45) !important;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .from-red-500 { --tw-gradient-from: #c9b28a !important; }
html[data-kk-theme="dark"]:not(:has(.login-split)) .to-orange-500 { --tw-gradient-to: #8d6840 !important; }
html[data-kk-theme="dark"]:not(:has(.login-split)) .from-red-400 { --tw-gradient-from: #e7d3ae !important; }
html[data-kk-theme="dark"]:not(:has(.login-split)) .to-orange-400 { --tw-gradient-to: #a67d4c !important; }
html[data-kk-theme="dark"]:not(:has(.login-split)) .focus\:border-red-500:focus {
  border-color: #c9b28a !important;
}
html[data-kk-theme="dark"]:not(:has(.login-split)) .text-\[\#58a6ff\] { color: #c9b28a !important; }
html[data-kk-theme="dark"]:not(:has(.login-split)) ::-webkit-scrollbar-track { background: #100c0a; }
html[data-kk-theme="dark"]:not(:has(.login-split)) ::-webkit-scrollbar-thumb { background: #5a4634; }
html[data-kk-theme="dark"]:not(:has(.login-split)) ::-webkit-scrollbar-thumb:hover { background: #8d6840; }

/* 白色主题。页面里的深色类名保持不变，这里把它们改成白底深字。 */
html[data-kk-theme="white"] {
  --background: #f6f1e8;
  --foreground: #1c140f;
  --card: #ffffff;
  --card-foreground: #1c140f;
  --popover: #ffffff;
  --popover-foreground: #1c140f;
  --primary: #8d6840;
  --primary-foreground: #ffffff;
  --secondary: #f3eadc;
  --secondary-foreground: #1c140f;
  --muted: #f3eadc;
  --muted-foreground: #7a6852;
  --accent: #f3eadc;
  --accent-foreground: #1c140f;
  --border: #e4d5be;
  --input: #e4d5be;
  --ring: #8d6840;
  --sidebar: #ffffff;
  --sidebar-foreground: #1c140f;
  --sidebar-primary: #8d6840;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #f3eadc;
  --sidebar-accent-foreground: #1c140f;
  --sidebar-border: #eadfcd;
  --sidebar-ring: #8d6840;
  --sidebar-background: 36 40% 96%;
  color-scheme: light;
}
html[data-kk-theme="white"] body { background: #f6f1e8; color: #1c140f; }
html[data-kk-theme="white"] .bg-\[\#0d1117\],
html[data-kk-theme="white"] .bg-\[\#0d1117\]\/80,
html[data-kk-theme="white"] .bg-\[\#0d1117\]\/50,
html[data-kk-theme="white"] .hover\:bg-\[\#0d1117\]:hover,
html[data-kk-theme="white"] .focus\:bg-\[\#0d1117\]:focus { background-color: #f6f1e8 !important; }
html[data-kk-theme="white"] .bg-\[\#161b22\],
html[data-kk-theme="white"] .hover\:bg-\[\#161b22\]:hover { background-color: #ffffff !important; }
html[data-kk-theme="white"] .bg-\[\#1c2128\],
html[data-kk-theme="white"] .bg-\[\#21262d\],
html[data-kk-theme="white"] .bg-\[\#21262d\]\/50,
html[data-kk-theme="white"] .bg-\[\#262c36\],
html[data-kk-theme="white"] .bg-\[\#2d333b\],
html[data-kk-theme="white"] .bg-\[\#1c2333\],
html[data-kk-theme="white"] .hover\:bg-\[\#1c2128\]:hover,
html[data-kk-theme="white"] .hover\:bg-\[\#21262d\]:hover,
html[data-kk-theme="white"] .hover\:bg-\[\#1c2333\]:hover,
html[data-kk-theme="white"] .focus\:bg-\[\#1c2128\]:focus { background-color: #f3eadc !important; }
html[data-kk-theme="white"] .bg-\[\#30363d\],
html[data-kk-theme="white"] .bg-\[\#30363d\]\/50,
html[data-kk-theme="white"] .hover\:bg-\[\#30363d\]:hover { background-color: #efe4d2 !important; }
html[data-kk-theme="white"] .border-\[\#30363d\],
html[data-kk-theme="white"] .\!border-\[\#30363d\],
html[data-kk-theme="white"] .border-\[\#30363d\]\/50,
html[data-kk-theme="white"] .border-\[\#30363d\]\/30,
html[data-kk-theme="white"] .border-\[\#21262d\],
html[data-kk-theme="white"] .border-\[\#484f58\],
html[data-kk-theme="white"] .border-\[\#3a4250\],
html[data-kk-theme="white"] .hover\:border-\[\#30363d\]:hover,
html[data-kk-theme="white"] .hover\:border-\[\#484f58\]:hover,
html[data-kk-theme="white"] .divide-\[\#21262d\] > :not(:last-child) { border-color: #e4d5be !important; }
html[data-kk-theme="white"] .text-\[\#e6edf3\],
html[data-kk-theme="white"] .hover\:text-\[\#e6edf3\]:hover { color: #1c140f !important; }
html[data-kk-theme="white"] .text-\[\#c9d1d9\],
html[data-kk-theme="white"] .hover\:text-\[\#c9d1d9\]:hover { color: #3a2a1c !important; }
html[data-kk-theme="white"] .text-\[\#8b949e\],
html[data-kk-theme="white"] .text-\[\#6e7681\],
html[data-kk-theme="white"] .text-\[\#9aa0a6\],
html[data-kk-theme="white"] .text-\[\#484f58\],
html[data-kk-theme="white"] .placeholder-\[\#8b949e\]::placeholder,
html[data-kk-theme="white"] .placeholder-\[\#484f58\]::placeholder { color: #7a6852 !important; }
html[data-kk-theme="white"] .text-\[\#58a6ff\] { color: #8d6840 !important; }
html[data-kk-theme="white"] .peer\/menu-button[data-active="true"] {
  color: #8d6840 !important;
  background-color: #f3eadc !important;
  border-color: #e4d5be !important;
}
html[data-kk-theme="white"] input,
html[data-kk-theme="white"] textarea,
html[data-kk-theme="white"] select {
  background-color: #ffffff;
  color: #1c140f;
  border-color: #e4d5be;
}
html[data-kk-theme="white"] ::-webkit-scrollbar-track { background: #f6f1e8; }
html[data-kk-theme="white"] ::-webkit-scrollbar-thumb { background: #d9cbb4; }
html[data-kk-theme="white"] ::-webkit-scrollbar-thumb:hover { background: #c4b08e; }

html[data-kk-theme="white"] .min-h-screen:has(.login-split) { background: #f6f1e8 !important; }
html[data-kk-theme="white"] .login-split { background-color: #f6f1e8; }
html[data-kk-theme="white"] .login-split > div:last-child {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.78) 16%, #ffffff 40%) !important;
}
html[data-kk-theme="white"] .login-split input {
  background: #ffffff !important;
  color: #1c140f !important;
  border-color: #e4d5be !important;
}
html[data-kk-theme="white"] .login-split input::placeholder { color: #a89070; }
html[data-kk-theme="white"] .login-split label,
html[data-kk-theme="white"] .login-split.kk-login-main h1 { color: #1c140f !important; }
html[data-kk-theme="white"] .login-split.kk-login-main h1 + p,
html[data-kk-theme="white"] .login-split.kk-login-main form::after,
html[data-kk-theme="white"] .login-split.kk-login-main > div:last-child::after { color: #7a6852 !important; }
html[data-kk-theme="white"] .kk-tg-login {
  background: #ffffff !important;
  color: #1c140f !important;
  border-color: #e4d5be !important;
}
@media (max-width: 1023px) {
  html[data-kk-theme="white"] .login-split > div:last-child { background: #ffffff !important; }
}

#kk-theme-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 4000;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(141, 104, 64, .45);
  background: #fffaf3;
  color: #8d6840;
  box-shadow: 0 8px 22px rgba(16, 32, 56, .16);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#kk-theme-float svg { width: 20px; height: 20px; display: block; }
html[data-kk-theme="dark"] #kk-theme-float {
  background: #24180f;
  color: #e7d3ae;
  border-color: #5a4634;
}

html[data-kk-theme="dark"] {
  background: #07060b;
}
html[data-kk-theme="dark"] body {
  isolation: isolate;
  background-color: transparent;
}
.sd-cosmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(176, 86, 24, 0.5) 0%, transparent 46%),
    radial-gradient(ellipse at 12% 78%, rgba(92, 40, 14, 0.28) 0%, transparent 32%),
    radial-gradient(ellipse at 88% 70%, rgba(70, 28, 10, 0.22) 0%, transparent 30%),
    linear-gradient(180deg, #07060b 0%, #100c0a 42%, #24140e 74%, #3a1c10 100%);
}
html[data-kk-theme="white"] .sd-cosmos { display: none; }
.sd-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.sd-fog, .sd-dune, .sd-lantern, .sd-smoke { z-index: 2; }
.sd-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
}
.sd-a1 { width: 78vw; height: 56vw; top: -20%; left: 10%; background: radial-gradient(circle, rgba(255, 176, 72, 0.18), transparent 76%); animation: sdDriftA 22s ease-in-out infinite; }
.sd-a2 { width: 64vw; height: 64vw; right: -20%; bottom: -24%; background: radial-gradient(circle, rgba(160, 72, 24, 0.2), transparent 78%); animation: sdDriftB 28s ease-in-out infinite; }
.sd-a3 { width: 50vw; height: 42vw; left: -18%; bottom: 4%; background: radial-gradient(circle, rgba(255, 140, 48, 0.1), transparent 74%); animation: sdDriftC 26s ease-in-out infinite; }
.sd-a4 { width: 36vw; height: 36vw; top: 18%; left: 28%; background: radial-gradient(circle, rgba(255, 214, 150, 0.1), transparent 76%); animation: sdDriftA 31s ease-in-out infinite reverse; }
.sd-milky {
  position: absolute;
  inset: -20%;
  background: linear-gradient(118deg, transparent 28%, rgba(210, 150, 70, 0.08) 42%, rgba(255, 214, 150, 0.16) 50%, rgba(180, 110, 40, 0.08) 58%, transparent 72%);
  filter: blur(16px);
  opacity: 0.22;
  mix-blend-mode: screen;
}
.sd-fog { position: absolute; left: -30%; width: 160%; bottom: -8%; filter: blur(42px); opacity: 0.45; mix-blend-mode: screen; }
.sd-f1 { height: 36%; background: radial-gradient(ellipse at 50% 100%, rgba(180, 110, 48, 0.12), transparent 72%); animation: sdFog 22s ease-in-out infinite; }
.sd-f2 { height: 28%; bottom: -6%; background: radial-gradient(ellipse at 18% 100%, rgba(70, 36, 14, 0.16), transparent 74%); animation: sdFog 18s ease-in-out infinite reverse; }
.sd-f3 { height: 26%; background: radial-gradient(ellipse at 40% 100%, rgba(255, 196, 120, 0.07), transparent 74%); animation: sdFog 26s ease-in-out infinite; }
.sd-dune { position: absolute; border-radius: 50%; }
.sd-d1 { left: -8%; right: -8%; bottom: -24vh; height: 32vh; background: #1a100c; }
.sd-d2 { left: -28%; right: 38%; bottom: -22vh; height: 28vh; background: #0d0907; }
.sd-d3 { left: 22%; right: 8%; bottom: -26vh; height: 30vh; background: #23160f; }
.sd-lantern {
  position: absolute;
  width: 11px;
  height: 16px;
  border-radius: 42% 42% 48% 48%;
  background: radial-gradient(circle at 50% 38%, #fff1cc, #e7a24a 52%, #8a3c12 100%);
  box-shadow: 0 0 16px rgba(255, 176, 72, 0.7);
  animation: sdGlow 3.6s ease-in-out infinite;
}
.sd-lantern::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 54px;
  background: linear-gradient(to top, rgba(232, 196, 140, 0.55), transparent);
}
.sd-n1 { left: 12%; top: 18%; }
.sd-n2 { left: 34%; top: 24%; transform: scale(0.8); animation-delay: -1.2s; }
.sd-n3 { left: 50%; top: 42%; transform: scale(0.55); animation-delay: -2s; }
.sd-smoke {
  position: absolute;
  width: 90px;
  height: 38vh;
  border-radius: 50%;
  background: linear-gradient(to top, transparent, rgba(255, 206, 140, 0.16) 40%, transparent 78%);
  filter: blur(18px);
  animation: sdSmoke 11s ease-in-out infinite;
  opacity: 0.35;
}
.sd-s1 { left: 9%; bottom: 16%; }
.sd-s2 { left: 42%; bottom: 20%; animation-delay: -4s; height: 32vh; }
@keyframes sdDriftA { 50% { transform: translate(4%, 6%) scale(1.08); } }
@keyframes sdDriftB { 50% { transform: translate(-6%, -4%) scale(1.12); } }
@keyframes sdDriftC { 50% { transform: translate(8%, -5%); } }
@keyframes sdFog { 50% { transform: translateX(-6%); } }
@keyframes sdSmoke {
  0% { transform: translateY(16px) scaleX(0.9); opacity: 0.15; }
  50% { transform: translateY(-36px) scaleX(1.35); opacity: 0.5; }
  100% { transform: translateY(-80px) scaleX(0.7); opacity: 0.05; }
}
@keyframes sdGlow {
  50% { box-shadow: 0 0 22px rgba(255, 196, 110, 0.95); filter: brightness(1.15); }
}
@media (max-width: 1023px) {
  .sd-n2, .sd-n3, .sd-s2 { display: none; }
  .login-split > div:first-child::after { width: min(280px, 70%); top: 50%; }
}
