/* ============================================================
   Norvye — Design Tokens
   Shared by all auth screens and the dashboard.
   Plus Jakarta Sans only. Flat surfaces. No shadows, no gradients.
   ============================================================ */

:root {
  /* ---- Primary ---- */
  --marina-ink: #0B1F3A;   /* headlines, key numbers, wordmark, nav, primary buttons */
  --marina-lift: #163766;  /* links, hover states */

  /* ---- Accent (one per screen, max) ---- */
  --signal: #C2410C;       /* the single primary CTA per screen */
  --signal-hover: #9A3408;

  /* ---- Neutrals ---- */
  --paper: #FFFFFF;        /* backgrounds */
  --fog: #F6F7F9;          /* card surfaces, secondary panels, metric tiles */
  --hairline: #E4E7EC;     /* dividers — use sparingly */
  --hairline-soft: #F3F4F6;/* softer internal dividers */
  --app-bg: #FFFFFF;       /* dashboard background */
  --slate: #475467;        /* body text */
  --slate-2: #6B7785;      /* secondary text, meta, timestamps */
  --muted: #9CA3AF;        /* labels, dates, inactive icons */
  --placeholder: #B0B5BF;  /* input placeholders */
  --disabled: #CCCCCC;     /* waiting/disabled state text */
  --silver:     #CFD3D7;   /* light neutral */
  --cool-steel: #A6ACB6;   /* mid neutral */
  --taupe:      #A79897;   /* warm neutral */

  /* ---- Semantic ---- */
  --closed: #047857;       /* success only */
  --caution: #A16207;      /* warnings only */
  --caution-deep: #92400E; /* pending badge text */
  --caution-soft: #FEF3C7; /* pending badge bg */

  /* ---- Typography ---- */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Radius ---- */
  --r-input: 8px;
  --r-card: 10px;
  --r-pill: 999px;
  --r-avatar: 10px;

  /* ---- Spacing scale ---- */
  --pad-card: 18px;
  --gap-section: 28px;
  --gap-section-lg: 32px;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--slate);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* tabular numerals helper */
.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================
   Wordmark
   The finalised brand wordmark ships as outlined SVG paths.
   Until that asset is dropped in, this renders the wordmark
   per its spec: Plus Jakarta Sans 700, lowercase, tight tracking.
   ============================================================ */
.wordmark {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--marina-ink);
  line-height: 1;
  user-select: none;
}

/* ============================================================
   Form controls (auth)
   Easing: enter cubic-bezier(.16,1,.3,1), exit cubic-bezier(.4,0,.2,1)
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--marina-ink);
  letter-spacing: -0.01em;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
/* label darkens to Marina Lift while its field is active */
.field:focus-within label { color: var(--marina-lift); }

.input {
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--marina-ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-input);
  padding: 10px 13px;
  width: 100%;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.input::placeholder { color: var(--placeholder); }
.input:focus {
  outline: none;
  border-color: var(--marina-ink);
}
.input:focus-visible {
  outline: 2px solid var(--marina-ink);
  outline-offset: 3px;
}

/* ---- Primary session button (auth): Marina Ink, NOT Signal ---- */
/* Weighted press: down 80ms ease-out, slower 120ms release */
.btn-ink {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--marina-ink);
  border: none;
  border-radius: var(--r-input);
  padding: 12px 16px;
  width: 100%;
  cursor: pointer;
  letter-spacing: -0.01em;
  transform: translateY(0);
  transition: background 0.15s ease, transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-ink:hover { background: var(--marina-lift); }
.btn-ink:active { transform: translateY(1px); transition: transform 0.08s ease-out; }
.btn-ink:focus-visible {
  outline: 2px solid var(--marina-ink);
  outline-offset: 3px;
}

/* ---- Signal CTA (exactly one per screen) ---- */
.btn-signal {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--signal);
  border: none;
  border-radius: var(--r-input);
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transform: translateY(0);
  transition: background 0.15s ease, transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-signal:hover { background: var(--signal-hover); }
.btn-signal:active { transform: translateY(1px); transition: transform 0.08s ease-out; }
.btn-signal:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ---- Links: underline materialises on hover ---- */
.link {
  color: var(--marina-lift);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease;
}
.link:hover { text-decoration-color: currentColor; }
.link:focus-visible {
  outline: 2px solid var(--marina-ink);
  outline-offset: 3px;
  border-radius: 3px;
  text-decoration-color: transparent;
}

/* ============================================================
   Auth split layout (login + signup share this)
   ============================================================ */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--paper);
}

.auth-visual {
  position: relative;
  background: var(--marina-ink);
  overflow: hidden;
}
.auth-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.auth-visual .wordmark {
  position: absolute;
  left: 40px;
  bottom: 34px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.30);
  z-index: 2;
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  width: 100%;
  max-width: 330px;
}
.auth-form .heading {
  font-size: 22px;
  font-weight: 500;
  color: var(--marina-ink);
  letter-spacing: -0.025em;
  margin: 0;
}
.auth-form .subheading {
  font-size: 13px;
  color: var(--slate-2);
  margin: 6px 0 0;
  letter-spacing: -0.005em;
}

/* ---- Responsive: stack auth ---- */
@media (max-width: 780px) {
  .auth {
    grid-template-columns: 1fr;
    grid-template-rows: 120px 1fr;
  }
  .auth-visual { min-height: 120px; }
  .auth-visual .wordmark {
    left: 24px;
    bottom: 22px;
    font-size: 17px;
  }
  .auth-form-wrap { padding: 32px 24px 48px; align-items: flex-start; }
}
