/* ---------------------------------------------------------------
   MQ Consulting — staging.mqconsulting.ph
   Styles for the root access-code page and the 404.

   Tokens and class names are the same ones onboarding.mqconsulting.ph
   uses, so the two private areas read as one system. Self-contained:
   no external fonts, no CDN, no build step.
   --------------------------------------------------------------- */

:root {
  --paper:  #050B18;
  --panel:  #0A1424;
  --ink:    #EEF4FF;
  --ink-2:  #C4D6EE;
  --muted:  #A3B8D6;
  --faint:  #7E94B5;
  --rule:   #1B2C45;
  --accent: #5AA7FF;

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

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

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- layout ---------- */

.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.stack {
  width: 100%;
  max-width: 34rem;
  text-align: center;
}

/* ---------- brand ---------- */

.brand { display: inline-block; line-height: 0; }
.brand img { width: 190px; max-width: 60vw; height: auto; }

/* ---------- type ---------- */

.kicker {
  display: block;
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  margin: 1.1rem auto 0;
  max-width: 42ch;
  font-size: 1.02rem;
  color: var(--muted);
}

.meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--faint);
}

.meta a { color: var(--muted); text-decoration: none; }
.meta a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- access code form ----------
   Same shape as the onboarding sign-in, one field instead of two. The
   code is typed by people reading it off an email on a phone, so the
   input is mono and generously tracked: 0 and O have to be tellable
   apart before they hit the button, not after. */

.login-form {
  margin: 2rem auto 0;
  max-width: 22rem;
  text-align: left;
}

.login-label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

.login-input {
  display: block;
  width: 100%;
  margin-bottom: 1.2rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  transition: border-color 0.15s ease;
}

.login-input::placeholder { color: var(--faint); letter-spacing: 0.04em; }

.login-input:hover { border-color: var(--faint); }
.login-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 167, 255, 0.15);
}

.login-btn {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: #04101F;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-btn:hover { background: #7CBAFF; }
.login-btn:active { background: #4A97EF; }

.login-error {
  margin: 1.4rem auto 0;
  max-width: 22rem;
  padding: 0.7rem 0.9rem;
  border-left: 2px solid #FF8A73;
  border-radius: 2px;
  background: rgba(255, 138, 115, 0.1);
  color: #FF8A73;
  font-size: 0.88rem;
  text-align: left;
}

.login-hint {
  margin: 0.9rem auto 0;
  max-width: 22rem;
  font-size: 0.78rem;
  color: var(--faint);
  text-align: left;
}

.login-hint--center { text-align: center; }
.login-hint a { color: var(--muted); text-decoration: none; }
.login-hint a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- footer ----------
   The band is full-bleed, the line inside it is not. Keeping the copy in a
   child rather than as text on the <footer> is what makes that true rather
   than merely looking true, and it is what the QA gate measures. */

.foot {
  padding: 1.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.74rem;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
