/* The native admin consumes HSL triplets. Its auth, layout and state colors
   stay native; the surrounding surfaces match the public paper and ink. */
:root {
  --background: 48 26% 93%;
  --foreground: 50 9% 13%;
  --card: 43 38% 95%;
  --card-foreground: 50 9% 13%;
  --popover: 43 38% 95%;
  --popover-foreground: 50 9% 13%;
  --primary: 50 9% 13%;
  --primary-foreground: 43 38% 95%;
  --secondary: 42 25% 89%;
  --secondary-foreground: 48 10% 22%;
  --muted: 42 25% 89%;
  --muted-foreground: 45 8% 35%;
  --accent: 42 25% 88%;
  --accent-foreground: 50 9% 13%;
  --border: 40 24% 81%;
  --input: 40 24% 81%;
  --ring: 44 12% 24%;
  --radius: .35rem;
}
:root.dark {
  --background: 54 7% 9%;
  --foreground: 44 36% 91%;
  --card: 45 7% 13%;
  --card-foreground: 44 36% 91%;
  --popover: 45 7% 13%;
  --popover-foreground: 44 36% 91%;
  --primary: 44 36% 91%;
  --primary-foreground: 54 7% 9%;
  --secondary: 43 10% 17%;
  --secondary-foreground: 44 36% 91%;
  --muted: 43 10% 17%;
  --muted-foreground: 42 11% 70%;
  --accent: 43 10% 18%;
  --accent-foreground: 44 36% 91%;
  --border: 40 10% 26%;
  --input: 40 10% 26%;
  --ring: 43 24% 76%;
}

:root[data-techox-signin] {
  color-scheme: light;
  --signin-paper: light-dark(#f7f4ec, #22211e);
  --signin-base: light-dark(#f1efe7, #191916);
  --signin-ink: light-dark(#24231e, #f0ecdf);
  --signin-muted: light-dark(#615d52, #bdb7a9);
  --signin-line: light-dark(#d8d0c0, #454139);
  --signin-focus: var(--signin-ink);
}
:root.dark[data-techox-signin] { color-scheme: dark; }
html[data-techox-signin] body {
  background: var(--signin-base);
  color: var(--signin-ink);
}
html[data-techox-signin] #root header { background: var(--signin-base); }
html[data-techox-signin] [data-techox-shell] {
  box-sizing: border-box;
  width: min(100% - 40px, 440px);
  max-width: none;
  padding: 30px 33px 31px;
  margin: clamp(30px, 7vh, 72px) auto 32px;
  border: 1px solid var(--signin-line);
  border-radius: 8px;
  background: var(--signin-paper);
}
html[data-techox-signin] .techox-signin-heading { margin-bottom: 25px; }
html[data-techox-signin] .techox-signin-heading h1 {
  margin: 14px 0 5px;
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -.042em;
}
html[data-techox-signin] .techox-signin-heading p { color: var(--signin-muted); font-size: 14px; }
html[data-techox-signin] [data-techox-form] input {
  border-color: var(--signin-line); border-radius: 10px; min-height: 43px; font-size: 14px;
}
html[data-techox-signin] [data-techox-form] input:focus-visible { outline: 2px solid var(--signin-focus); outline-offset: 1px; }
html[data-techox-signin] [data-techox-form] button[type="submit"] {
  background: var(--signin-ink); color: var(--signin-paper); border-radius: 5px; min-height: 43px;
}
html[data-techox-signin] [data-techox-form] button[type="submit"]:hover:not(:disabled) { opacity: .87; }
@media (max-width: 520px) {
  html[data-techox-signin] [data-techox-shell] { padding: 25px; }
}
