/* Generated by web/scripts/gen-door-css.mjs from src/styles/velvet/. Do not edit. */
/* Velvet tokens, light theme: the app's one visual identity (David, 2026-10-30).
   Source: apps/hr-apps/pay-equity-app/frontend/src/assets/main.css, the `@theme` block, copied
   value for value (names unchanged). The sign-in door (/sign-in-door.css, built by
   web/scripts/gen-door-css.mjs) is the only consumer in this app. Velvet's `.dark` block is
   defined upstream and never toggled, so the door has no dark theme.
   The component sizes below the Velvet block (control height, focus ring, lockup) come from
   the marketing site's design system (clients/telos-remuneration), which is built on Velvet. */

:root {
  /* Primary */
  --color-primary: oklch(0.13 0.02 250);
  --color-primary-hover: oklch(0.19 0.02 250);
  --color-on-primary: oklch(1 0 0);

  /* Accent */
  --color-accent: oklch(0.47 0.19 264);
  --color-accent-hover: oklch(0.42 0.21 264);
  --color-on-accent: oklch(1 0 0);

  /* Status */
  --color-danger: oklch(0.41 0.18 27);
  --color-danger-subtle: oklch(0.97 0.02 27);
  --color-danger-border: oklch(0.88 0.07 27);

  /* Surfaces */
  --color-background: oklch(0.98 0.005 240);
  --color-surface: oklch(1 0 0);
  --color-border: oklch(0.90 0.01 240);

  /* Text */
  --color-text-main: oklch(0.13 0.02 250);
  --color-text-muted: oklch(0.48 0.03 240);
  --color-text-light: oklch(0.62 0.02 240);

  /* Aliases */
  --color-surface-secondary: oklch(0.95 0.01 240);
  --color-primary-subtle: oklch(0.96 0.02 262);
  --color-accent-border: oklch(0.85 0.07 264);

  /* Fonts */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation */
  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.08), 0 1px 2px oklch(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px oklch(0 0 0 / 0.07), 0 4px 6px oklch(0 0 0 / 0.05);
  --shadow-accent: 0 4px 12px oklch(0.47 0.19 264 / 0.25);

  /* Shape (Velvet: .card 8px, .btn and inputs 6px) */
  --radius-card: 8px;
  --radius-control: 6px;

  /* Field edge: 3:1 against white, where Velvet's --color-border is a decorative hairline */
  --color-border-control: oklch(0.62 0.02 240);

  /* Sizes from the marketing site's design system */
  --control-height: 48px;
  --lockup-height: 48px;
  --focus-ring: 2px solid var(--color-accent);
  --focus-halo: 0 0 0 3px oklch(0.47 0.19 264 / 0.1);
}

/* The sign-in door in Velvet (v2-facade/src/oauth/door_page.py markup). One white card on cool
   paper, the site's lockup above it, the way back to the site below. No script, no inline style. */

@font-face { font-family: 'DM Serif Display'; src: url('/fonts/DMSerifDisplay-Regular-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-Variable-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

html { color-scheme: light; background: var(--color-background); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-background);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--color-accent-border); color: var(--color-text-main); }

/* Layout: lockup, card, links, centred in the viewport */
.tm-door {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 16px;
}
.tm-signin {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tm-signin__lockup {
  align-self: center;
  max-width: 100%;
  display: block;
  border-radius: var(--radius-control);
  text-decoration: none;
}
.tm-signin__logo {
  display: block;
  height: var(--lockup-height);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Card */
.tm-signin__panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.tm-signin__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-main);
  text-wrap: balance;
}
.tm-signin__body, .tm-signin__list, .tm-signin__foot { margin: 0; color: var(--color-text-muted); }
.tm-signin__body b, .tm-signin__list b { font-weight: 600; color: var(--color-text-main); }
.tm-signin__body { max-width: 56ch; text-wrap: pretty; overflow-wrap: anywhere; }
.tm-signin__list { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.tm-signin__foot { font-size: 0.875rem; color: var(--color-text-light); }
.tm-signin__actions, .tm-signin__form { display: flex; flex-direction: column; gap: 16px; }
.tm-signin__actions { gap: 16px; }

/* A heading with something under it keeps a little more air than the card's gap */
.tm-signin__heading:not(:last-child) { margin-bottom: 8px; }

/* Divider: « ou » between the two doors */
.tm-signin__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.tm-signin__divider::before, .tm-signin__divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--color-border);
}

/* Buttons: the one solid indigo button, the bordered secondary */
.tm-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-height);
  max-width: 100%;
  padding: 8px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: 600 1rem/1.3 var(--font-sans);
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms cubic-bezier(0.16, 1, 0.3, 1), color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tm-signin__actions > .tm-btn, .tm-signin__form > .tm-btn { width: 100%; }
.tm-btn--primary { background: var(--color-accent); color: var(--color-on-accent); box-shadow: var(--shadow-accent); }
.tm-btn--primary:hover { background: var(--color-accent-hover); }
.tm-btn--primary:active { background: var(--color-accent-hover); box-shadow: none; }
.tm-btn--secondary { background: var(--color-surface); color: var(--color-text-main); border-color: var(--color-border-control); font-weight: 500; }
.tm-btn--secondary:hover { border-color: var(--color-text-main); }
.tm-btn--secondary:active { background: var(--color-surface-secondary); border-color: var(--color-text-main); }
.tm-btn:disabled { background: var(--color-surface-secondary); color: var(--color-text-light); border-color: var(--color-border); box-shadow: none; cursor: not-allowed; }

/* Field */
.tm-field { display: flex; flex-direction: column; gap: 6px; }
.tm-field__label { font-size: 0.875rem; font-weight: 500; line-height: 1.5; color: var(--color-text-main); }
.tm-input {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--control-height);
  padding: 8px 14px;
  background: var(--color-surface);
  color: var(--color-text-main);
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-control);
  font: 400 1rem/1.5 var(--font-sans);
  caret-color: var(--color-accent);
  transition: border-color 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tm-input:hover { border-color: var(--color-text-main); }
.tm-input:focus, .tm-input:focus-visible { border-color: var(--color-accent); box-shadow: var(--focus-halo); }
.tm-input:-webkit-autofill { -webkit-text-fill-color: var(--color-text-main); box-shadow: 0 0 0 1000px var(--color-surface) inset; }
.tm-field__error {
  margin: 0;
  padding: 8px 12px;
  background: var(--color-danger-subtle);
  border: 1px solid var(--color-danger-border);
  border-radius: var(--radius-control);
  font-size: 0.875rem;
  color: var(--color-danger);
}

/* Links, focus */
.tm-door a { color: var(--color-accent); text-underline-offset: 4px; }
.tm-door a:hover { color: var(--color-accent-hover); text-decoration-thickness: 2px; }
.tm-door a.tm-btn { text-underline-offset: 0; }
.tm-door a.tm-btn--primary, .tm-door a.tm-btn--primary:hover { color: var(--color-on-accent); text-decoration: none; }
.tm-door a.tm-btn--secondary, .tm-door a.tm-btn--secondary:hover { color: var(--color-text-main); text-decoration: none; }
.tm-door .tm-signin__lockup:hover { text-decoration: none; }
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.tm-input:focus-visible { outline-offset: 0; }

/* The way back to the site */
.tm-door__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 0.875rem; }
.tm-door__nav a { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--radius-control); }

@media (min-width: 48rem) {
  .tm-door { gap: 24px; padding: 64px 24px; }
  .tm-signin__panel { gap: 20px; padding: 32px; }
  .tm-signin__heading { font-size: 2.25rem; }
}
/* Phone floor (v0.3.9, web-agency phone-fit): the card's own lines are 16px on a phone, and the links
   under it keep a 44px box. The door passed the check on master; the foot and the error line were
   the two paragraphs left at 14px. */
@media (max-width: 47.9375rem) {
  .tm-signin__foot, .tm-field__error { font-size: 1rem; }
  .tm-door__nav a { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-btn, .tm-input { transition: none; }
}
