/* ─── MT SOP Brand Theme ───────────────────────────────────────────────────
   Brand color: #ff671f (vibrant orange)
   Override FluentUI design token CSS custom properties.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --font-display: "Literata", "Segoe UI", serif;
  --font-body: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --app-ink: #1e1914;
  --app-muted: rgba(30, 25, 20, 0.62);
  --app-surface: #f7f2eb;
  --app-surface-2: #ffffff;
  --app-border: rgba(20, 15, 12, 0.12);
  --app-shadow: 0 24px 50px rgba(20, 14, 10, 0.12);

  /* Accent fill */
  --accent-fill-rest: #ff671f;
  --accent-fill-hover: #e55a16;
  --accent-fill-active: #cc4f10;
  --accent-fill-focus: #ff671f;

  /* Accent foreground (text on accent) */
  --accent-foreground-rest: #ff671f;
  --accent-foreground-hover: #e55a16;
  --accent-foreground-active: #cc4f10;

  /* Stroke / border */
  --accent-stroke-control-rest: #ff671f;
  --accent-stroke-control-hover: #e55a16;
  --accent-stroke-control-active: #cc4f10;

  /* Base app background */
  --body-background: var(--app-surface);
}

/* ─── Global resets ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--body-background);
  color: var(--app-ink);
}

/* ─── Loading auth overlay ─────────────────────────────────────────────────── */
.loading-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* ─── FluentNavLink active state override ──────────────────────────────────── */
fluent-nav-item::part(content):hover,
fluent-nav-item[selected]::part(content) {
  color: #ff671f;
}

/* ─── FluentButton accent ──────────────────────────────────────────────────── */
fluent-button[appearance="accent"]::part(control) {
  background: #ff671f;
  border-color: #ff671f;
  color: #fff;
}
fluent-button[appearance="accent"]::part(control):hover {
  background: #e55a16;
  border-color: #e55a16;
}
fluent-button[appearance="accent"]::part(control):active {
  background: #cc4f10;
}

/* ─── Form label spacing ──────────────────────────────────────────────────── */
fluent-label {
  margin-bottom: 4px;
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ─── Card shadows ────────────────────────────────────────────────────────── */
fluent-card {
  box-shadow: 0 12px 26px rgba(20, 16, 12, 0.08);
  border-radius: 14px;
  background: #fff;
}

/* ─── Validation messages ───────────────────────────────────────────────────── */
.validation-message {
  color: #d32f2f;
  font-size: 0.75rem;
  margin-top: 4px;
}
