/* Generated by Tools/bundle-css.mjs from Tools/css-bundles.json. Edit the sources, not this file. */
/* ---- wwwroot/styles/themes/default.css ---- */
/* BlazorBlueprint Default Theme - OKLCH Color Space
 * Based on shadcn/ui default theme
 * Customize these CSS variables to create your own theme
 */

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);

  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);

  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);

  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);

  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);

  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);

  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(1 0 0);

  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);

  --radius: 0.5rem;

  /* Dimension baselines */
  --density-scale: 1;
  --transition-duration: 150ms;
  --transition-duration-fast: 75ms;
  --transition-duration-slow: 300ms;
  --shadow-sm: none;
  --shadow:    none;
  --shadow-md: none;
  --shadow-lg: none;

  /* Surface treatment — overridden by industry palette files */
  --page-bg:                 var(--background);
  --header-bg:               var(--background);
  --header-border-color:     var(--border);
  --header-backdrop-filter:  none;

  /* Charts are drawn in the realm's palette, light and dark alike: Primary, Accent, and mixes of the two
     and of the Foreground so five series stay apart. No hue is read and no colour is made up. */
  --chart-1: var(--primary);
  --chart-2: var(--accent);
  --chart-3: color-mix(in oklab, var(--primary) 55%, var(--accent));
  --chart-4: color-mix(in oklab, var(--primary) 60%, var(--foreground));
  --chart-5: color-mix(in oklab, var(--accent) 60%, var(--foreground));

  /* Navigation: the navigation bar and the sidebar. The realm's palette writes both (Navigation and
     the calculated text colour on it); these are the neutral colours of a realm with no palette. */
  --navigation: oklch(0.985 0 0);
  --navigation-foreground: oklch(0.145 0 0);

  /* Sidebar variables. All of them read the palette tokens, so a realm's palette (light or dark)
     is the only thing that colours the sidebar. Text on the sidebar is the Navigation text colour;
     an active row is Accent with its own text colour. A colour mixed with `transparent` is the
     same palette colour made see-through, not a new colour. */
  --sidebar-background: var(--navigation);
  --sidebar: var(--sidebar-background); /* alias used by blazorblueprint.css bg-sidebar */
  --sidebar-foreground: var(--navigation-foreground);
  --sidebar-muted-foreground: var(--navigation-foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--accent);
  --sidebar-accent-foreground: var(--accent-foreground);
  --sidebar-border: color-mix(in oklab, var(--navigation-foreground) 15%, transparent);
  --sidebar-ring: var(--ring);

  /* A gradient of the brand runs from Primary to Accent */
  --brand-gradient: linear-gradient(135deg in oklab, var(--primary), var(--accent));

  /* ── Browser autofill override ─────────────────────────────────────────
     Chrome/Edge apply a yellow background to autofilled fields that cannot
     be removed via background-color. Covering it with an inset box-shadow
     of the correct input colour is the only reliable workaround.
     -webkit-text-fill-color overrides the text inside autofilled fields. */

  /* Alert colors */
  --alert-success: oklch(0.55 0.20 142);
  --alert-success-foreground: oklch(0.30 0.09 142);
  --alert-success-bg: oklch(0.993 0.003 142);
  --alert-info: oklch(0.50 0.20 255);
  --alert-info-foreground: oklch(0.30 0.10 255);
  --alert-info-bg: oklch(0.993 0.003 255);
  --alert-warning: oklch(0.68 0.18 55);
  --alert-warning-foreground: oklch(0.35 0.10 55);
  --alert-warning-bg: oklch(0.995 0.003 55);
  --alert-danger: oklch(0.55 0.22 27);
  --alert-danger-foreground: oklch(0.30 0.12 27);
  --alert-danger-bg: oklch(0.993 0.003 27);
}

/* html.dark has specificity 0,1,1 — beats :root (0,1,0) from realm theme files
   that redefine these variables without a dark counterpart. */
html.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);

  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);

  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);

  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);

  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);

  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);

  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);

  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.985 0 0);

  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.556 0 0);

  /* Navigation, neutral dark. The sidebar tokens of :root read these. */
  --navigation: oklch(0.205 0 0);
  --navigation-foreground: oklch(0.985 0 0);

  /* Alert colors */
  --alert-success: oklch(0.60 0.18 142);
  --alert-success-foreground: oklch(0.90 0.06 142);
  --alert-success-bg: oklch(0.18 0.008 142);
  --alert-info: oklch(0.55 0.18 255);
  --alert-info-foreground: oklch(0.90 0.05 255);
  --alert-info-bg: oklch(0.18 0.008 255);
  --alert-warning: oklch(0.65 0.16 55);
  --alert-warning-foreground: oklch(0.92 0.06 55);
  --alert-warning-bg: oklch(0.19 0.008 55);
  --alert-danger: oklch(0.55 0.20 27);
  --alert-danger-foreground: oklch(0.90 0.06 27);
  --alert-danger-bg: oklch(0.18 0.008 27);
}

/* ── Browser autofill yellow override ──────────────────────────────────────
   Chrome/Edge stamp a yellow background on autofilled fields that cannot be
   removed via background-color. Covering it with an inset box-shadow of the
   realm's --input colour is the standard workaround.
   Works for every realm because it reads the current CSS custom property. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 60px var(--input, var(--background)) inset !important;
    box-shadow:         0 0 0 60px var(--input, var(--background)) inset !important;
    -webkit-text-fill-color: var(--foreground) !important;
    caret-color:             var(--foreground) !important;
}
/* ---- wwwroot/css/zone/auth.css ---- */
/* ─── Auth zone ────────────────────────────────────────────────────────────
 * Loaded by App.razor unconditionally. Only takes effect when an auth page
 * (using AuthLayout) is rendered — every rule is scoped to .auth-* classes
 * that AuthLayout produces.
 *
 * The auth zone is archetype-neutral: it derives from the realm's theme tokens
 * (--background, --foreground, --card, --primary, --border, --muted-foreground,
 * --ring …) injected by App.razor, so it automatically follows each realm's
 * ColorMode — light realms get a light auth page, dark realms a dark one — just
 * like the marketing pages. The decorative backdrop wash is the palette's Primary
 * and Accent. Per-archetype blocks below (e.g. Atelier) may further customise.
 * ─────────────────────────────────────────────────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  position: relative;
  overflow: hidden;
}

.auth-backdrop {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%,
      color-mix(in oklab, var(--primary) 16%, transparent), transparent 65%),
    radial-gradient(ellipse 40% 30% at 50% 100%,
      color-mix(in oklab, var(--accent) 12%, transparent), transparent 60%);
  filter: blur(40px);
}

.auth-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.auth-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg,
    var(--primary),
    var(--accent, var(--primary)));
  box-shadow: 0 0 18px color-mix(in oklch, var(--primary) 45%, transparent);
}
.auth-brand-name {
  background: linear-gradient(135deg,
    var(--primary),
    var(--accent, var(--primary)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.auth-back-link {
  font-size: 13px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 200ms ease;
}
.auth-back-link:hover {
  color: var(--foreground);
}

.auth-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  background: color-mix(in oklch, var(--card) 85%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px oklch(0 0 0 / 0.30);
}

.auth-card-head {
  text-align: center;
  margin-bottom: 28px;
}
.auth-card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--foreground);
}
.auth-card-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
}
.auth-input {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--foreground);
  font-size: 14px;
  padding: 9px 12px;
  font-family: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  width: 100%;
  box-sizing: border-box;
}
.auth-input::placeholder {
  color: var(--muted-foreground);
}
/* select renders the arrow in the OS colour otherwise, which reads as disabled on dark realms */
select.auth-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%),
                    linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.auth-field-hint {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 0;
}
.auth-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 22%, transparent);
}

.auth-submit {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 200ms ease, box-shadow 200ms ease;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px color-mix(in oklch, var(--primary) 30%, transparent);
}
.auth-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 26px color-mix(in oklch, var(--primary) 42%, transparent);
}

.auth-alert {
  background: color-mix(in oklch, var(--destructive, oklch(0.58 0.22 25)) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--destructive, oklch(0.58 0.22 25)) 50%, transparent);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--destructive, oklch(0.58 0.22 25));
}

/* The .auth-alert shape in the realm's own accent, for the good news: a password that is set,
   a link that is on its way. Destructive red would read as a failure. */
.auth-notice {
  background: color-mix(in oklch, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--primary) 45%, transparent);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--foreground);
}

.auth-card-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--muted-foreground);
}
.auth-card-foot a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-card-foot a:hover {
  text-decoration: none;
}

.auth-footer {
  position: relative;
  z-index: 1;
  padding: 22px 32px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* ─── Mobile (≤768px) ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-topbar {
    padding: 18px 20px;
  }
  .auth-back-link {
    font-size: 12px;
  }
  .auth-main {
    padding: 16px 16px;
  }
  .auth-card {
    padding: 28px 24px;
  }
  .auth-card-title {
    font-size: 20px;
  }
  .auth-footer {
    padding: 18px 20px;
  }
}

/* ─── Atelier ──────────────────────────────────────────────────────────
 * The page, the card and the fields take the realm's palette tokens like every other
 * realm, light and dark. Only the smell lines (AtelierSmellLines, AtelierBrandMark)
 * need their own tokens: the accent is Primary and the waves step from the page
 * colour towards the text colour.
 * ─────────────────────────────────────────────────────────────────────── */
.auth-page[data-archetype="Atelier"] {
  --atArchetype-accent:  var(--primary);
  --atArchetype-wave-1:  color-mix(in oklab, var(--foreground) 14%, var(--background));
  --atArchetype-wave-2:  color-mix(in oklab, var(--foreground) 22%, var(--background));
  --atArchetype-wave-3:  color-mix(in oklab, var(--foreground) 30%, var(--background));
  --atArchetype-wave-4:  color-mix(in oklab, var(--foreground) 38%, var(--background));
}

/* The smell lines sit behind the page. Without this the SVG is in the flow and pushes the card far down the page. */
.auth-smell-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.auth-smell-lines svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* The package choices on the signup form: one radio per package and interval */
.auth-packages {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.auth-package {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.auth-package:has(input:checked) {
  border-color: var(--ring);
  background: color-mix(in oklch, var(--primary) 8%, transparent);
}
.auth-package input {
  margin-top: 3px;
  accent-color: var(--primary);
}
.auth-package-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--foreground);
}
.auth-package-name {
  font-weight: 500;
}
.auth-package-price {
  font-size: 13px;
}
.auth-package-note,
.auth-package-saving {
  font-size: 12px;
  color: var(--muted-foreground);
}
.auth-package-saving {
  color: var(--primary);
}
