/* INTIGER Lab base: fonts, tokens, reset, typography, forms, buttons, messages.
   Shared by the public site, the admin panel and the sign-in pages.
   Tokens and typography follow the approved design system in docs/design/README.md. */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/inter-tight-latin-bb14ae8d.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0102, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308, U+0323, U+0329, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A,
    U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/inter-tight-cyrillic-f42f3e97.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020, U+0041, U+00A0, U+00C1, U+0102, U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("/assets/unbounded-latin-cafa3ec4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00B4, U+00B6-00FF, U+0102, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2013-2014, U+2018-201A, U+201C-201E, U+2022,
    U+2026, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Unbounded";
  src: url("/assets/unbounded-cyrillic-bc09ba47.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020, U+0041, U+00A0, U+00C1, U+0102, U+0301, U+0400-045F, U+0490-0491, U+2116;
}

:root {
  /* Colour */
  --blue-dark: #0b4f6c;
  --blue: #4a76a8;
  --blue-light: #5b9bd5;
  --blue-bg: #e8f1fa;
  --text: #555555;
  --text-muted: #566674;
  --accent: #ed7d31;
  --accent-hover: #d96a1f;
  --accent-active: #c05f1b;
  --on-accent: #201e1d;
  --danger: #b3261e;
  --danger-bg: #fdf4f3;
  --danger-border: #f3c9c4;
  --border: #d3e2ef;
  --border-muted: #b8c7d2;
  --disabled-bg: #f5f7f9;
  --on-dark: #ffffff;
  --on-dark-text: #d6e8f4;
  --on-dark-muted: #9fc8e4;
  --shadow-hover: 0 8px 24px rgba(11, 79, 108, .12);

  /* Spacing scale: 8 / 16 / 24 / 32 / 48 / 72 */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;

  /* Type families */
  --font-text: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", var(--font-text);
}

*, *::before, *::after { box-sizing: border-box; }

/* Radius is 0 everywhere in this design. The only exception is round avatars,
   which set border-radius: 50% explicitly where they're rendered. */
* { border-radius: 0; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font: 1rem/1.6 var(--font-text);
  /* Full-bleed sections use `width: 100vw` to break out of the content column,
     which on Linux/Windows overcounts by the reserved scrollbar width and
     produces a 1px-wide horizontal scrollbar. Clip that sliver instead of
     tracking down every 100vw user. */
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--blue-dark); font-weight: 800; margin: 0 0 1rem; }
h1 { font-size: clamp(2.1875rem, 2.8vw + 1.5rem, 4rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(1.625rem, 1.15vw + 1.35rem, 2.375rem); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.eyebrow {
  display: block; font-family: var(--font-display); font-size: .8125rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue-dark); margin: 0 0 1rem;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Text-style fields get their own blue border-and-shadow focus treatment
   (below); the generic orange outline would otherwise double up with it. */
.field input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

.page { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.lead { font-size: 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Forms */
.field { margin-bottom: 1rem; max-width: 28rem; }
.field label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .5rem; color: var(--blue-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--text);
  border: 1px solid var(--border); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border: 2px solid var(--blue); padding: 12px 13px;
}
.field input:disabled, .field select:disabled, .field textarea:disabled {
  background: var(--disabled-bg); color: var(--text-muted);
}
.field small { display: block; margin-top: .25rem; color: var(--text-muted); }
.code-input { font-size: 1.5rem; letter-spacing: .15em; }

.button {
  display: inline-block; padding: 14px 24px; font: inherit; font-size: 1rem; font-weight: 600;
  border: 0; cursor: pointer; text-decoration: none; text-align: left;
}
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.button-primary:active { background: var(--accent-active); color: var(--on-accent); }
.button-primary:disabled, .button-primary[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.button-secondary { background: transparent; color: var(--blue-dark); border: 1px solid var(--blue); }
.button-secondary:hover { border-color: var(--blue-dark); background: var(--blue-bg); }
.button-secondary:active { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.button-secondary:disabled, .button-secondary[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.button-link { background: none; padding: 14px 0; color: var(--blue); text-decoration: none; }
/* Spec calls for #ED7D31 on hover, but that fails AA (2.77:1) on white; using the
   pressed shade #A8500F for both hover and active keeps the accessible contrast. */
.button-link:hover, .button-link:active { color: #a8500f; text-decoration: underline; text-decoration-thickness: 2px; }

/* Flash messages */
.flash { padding: .8rem 1rem; margin: 0 0 1rem; }
.flash ul { margin: 0; padding-left: 1.2rem; }
.flash-notice { background: var(--blue-bg); color: var(--blue-dark); }
.flash-alert { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }

/* Two-factor */
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: 1rem; }
.qr { width: 12rem; max-width: 100%; margin: .75rem 0; }
.qr svg { width: 100%; height: auto; display: block; }
.recovery-codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .5rem; }
.recovery-codes code, .steps code { background: var(--blue-bg); padding: .3rem .5rem; color: var(--blue-dark); }

/* Shared components */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--blue-dark); background: var(--blue-bg); white-space: nowrap; }
td.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
td.actions form { display: inline; }
td.actions .button { padding: 8px 14px; font-size: .875rem; }

.badge {
  display: inline-block; padding: 5px 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; background: var(--blue-bg); color: var(--blue-dark);
}
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.avatar { border-radius: 50%; object-fit: cover; display: block; margin-top: .5rem; }
