/* Unified Ghost UI (black-ghost) login-page treatment: clear-left abyss stage / translucent obsidian right panel. */
body:has(.auth-shell) #appearance-background::after {
  background: transparent;
}

body:has(.auth-shell) .auth-story {
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:has(.auth-shell) .auth-story::before,
body:has(.auth-shell) .auth-story::after {
  content: none;
  background: none;
  box-shadow: none;
}
body:has(.auth-shell) .auth-story :is(.brand, .story-label, h1, p, .story-bottom) {
  text-shadow: 0 1px 3px #000, 0 2px 6px #000;
}

body:has(.auth-shell) .auth-form-side {
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  --muted: color-mix(in srgb, var(--ink) 82%, var(--bg));
  --faint: color-mix(in srgb, var(--ink) 70%, var(--bg));
}
body:has(.auth-shell) .auth-form-wrap {
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:has(.auth-shell) .auth-form-wrap::before,
body:has(.auth-shell) .auth-form-wrap::after {
  content: none;
  border: 0;
  background: none;
  box-shadow: none;
}

body:has(.auth-shell) .auth-form-side :is(.field input, .field select, .language-control select) {
  background-color: var(--surface);
}
body:has(.auth-shell) .auth-form-side :is(h2, .auth-kicker, .auth-description, .field > label, .auth-bottom-note) {
  text-shadow: 0 1px 3px #0009;
}

body[data-theme="black-ghost"]:has(.auth-shell) .auth-story {
  border-right-color: rgba(92, 225, 255, 0.24);
  box-shadow: inset -1px 0 0 rgba(186, 238, 255, 0.12);
}
body[data-theme="black-ghost"]:has(.auth-shell) .auth-story h1 span {
  color: #67e8f9;
  text-shadow: 0 0 28px rgba(46, 211, 255, 0.48), 0 2px 10px #000;
}
body[data-theme="black-ghost"]:has(.auth-shell) .auth-form-side {
  background: linear-gradient(165deg, rgba(5, 13, 29, 0.64) 0%, rgba(3, 7, 17, 0.78) 100%);
  box-shadow: inset 1px 0 0 rgba(186, 238, 255, 0.16), -20px 0 54px rgba(0, 4, 15, 0.55);
  --muted: #b4cde8;
  --faint: #84a3c7;
}
body[data-theme="black-ghost"]:has(.auth-shell) .auth-form-wrap h2 {
  color: #f4faff;
  text-shadow: 0 0 22px rgba(46, 211, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.7);
}
body[data-theme="black-ghost"]:has(.auth-shell) .auth-form-side :is(.field input, .field select, .language-control select) {
  background: rgba(7, 17, 36, 0.88);
  border-color: rgba(74, 138, 204, 0.42);
  box-shadow: inset 0 1px 0 rgba(186, 238, 255, 0.20), 0 8px 20px rgba(0, 4, 15, 0.46);
}
body[data-theme="black-ghost"]:has(.auth-shell) .auth-form-side :is(.field input:focus, .field select:focus) {
  border-color: #5ce1ff;
  box-shadow: 0 0 0 3px rgba(46, 211, 255, 0.22), inset 0 1px 0 rgba(214, 247, 255, 0.34);
}
