/*
 * Auth Theme — standalone stylesheet for Django auth pages.
 * Mirrors MFE design tokens (OKLCH) so auth pages look identical to the SPA.
 *
 * NOTE: The @theme inline block lives in entrance.html as an inline
 * <style type="text/tailwindcss"> because the Tailwind v4 browser CDN
 * only processes inline style blocks, not external CSS files.
 */

/* ── Light mode (default) ─────────────────────────────────── */
:root {
  --radius: 0.625rem;
  --background: oklch(0.96 0.015 85);
  --foreground: oklch(0.18 0.035 264.695);
  --card: oklch(0.97 0.012 85);
  --card-foreground: oklch(0.18 0.035 264.695);
  --popover: oklch(0.97 0.012 85);
  --popover-foreground: oklch(0.18 0.035 264.695);
  --primary: oklch(0.25 0.04 265.755);
  --primary-foreground: oklch(0.96 0.015 85);
  --secondary: oklch(0.93 0.02 85);
  --secondary-foreground: oklch(0.25 0.04 265.755);
  --muted: oklch(0.93 0.02 85);
  --muted-foreground: oklch(0.50 0.04 257.417);
  --accent: oklch(0.93 0.02 85);
  --accent-foreground: oklch(0.25 0.04 265.755);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.929 0.013 255.508);
  --input: oklch(0.929 0.013 255.508);
  --ring: oklch(0.704 0.04 256.788);
}

/* ── Dark mode ────────────────────────────────────────────── */
.dark {
  --background: oklch(0.22 0.025 264.695);
  --foreground: oklch(0.80 0.015 250);
  --card: oklch(0.24 0.025 259.21);
  --card-foreground: oklch(0.80 0.015 250);
  --popover: oklch(0.28 0.025 265.755);
  --popover-foreground: oklch(0.80 0.015 250);
  --primary: oklch(0.85 0.02 255.508);
  --primary-foreground: oklch(0.24 0.03 265.755);
  --secondary: oklch(0.34 0.025 260.031);
  --secondary-foreground: oklch(0.80 0.015 250);
  --muted: oklch(0.34 0.025 260.031);
  --muted-foreground: oklch(0.58 0.03 256.788);
  --accent: oklch(0.34 0.025 260.031);
  --accent-foreground: oklch(0.80 0.015 250);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.551 0.027 264.364);
}

/* ── Base reset ───────────────────────────────────────────── */
*,
*::before,
*::after {
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Crispy-forms overrides ───────────────────────────────── */
.auth-input {
  display: flex;
  height: 2.25rem;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--input);
  background-color: transparent;
  padding: 0.25rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.04);
  outline: none;
  transition: color 0.15s, box-shadow 0.15s;
  color: var(--foreground);
}

.auth-input::placeholder {
  color: var(--muted-foreground);
}

.auth-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent);
}

.auth-input:disabled {
  opacity: 0.5;
}
