/* MineralEyz Partner Portal. Light neutral palette, one accent, quiet depth.
   No em or en dashes anywhere in this file's content strings. */

:root {
  --paper: #f7f6f3;
  --surface: #ffffff;
  --ink: #1c1b18;
  --ink-soft: #4a4740;
  --muted: #767165;
  --hairline: #e6e3db;
  --accent: #155e56;
  --accent-ink: #0f4640;
  --accent-soft: #e4efed;
  --amber: #8a5a12;
  --amber-soft: #f6ecd9;
  --danger: #8a2a1c;
  --danger-soft: #f7e6e2;
  --shadow-card: 0 1px 2px rgba(28, 27, 24, 0.05), 0 10px 30px rgba(28, 27, 24, 0.06);
  --shadow-lift: 0 2px 4px rgba(28, 27, 24, 0.06), 0 16px 40px rgba(28, 27, 24, 0.09);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

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

body.centered { justify-content: center; }

/* ---------- wordmark ---------- */

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  margin-bottom: 32px;
}

.wordmark-main {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.wordmark-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

.wordmark-inline {
  flex-direction: row;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 0;
}

.wordmark-inline .wordmark-main { font-size: 17px; }
.wordmark-inline .wordmark-sub { font-size: 10px; letter-spacing: 0.28em; }

/* ---------- auth surfaces ---------- */

.auth-wrap {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 48px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;
  justify-content: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.auth-card {
  width: 100%;
  padding: 36px 36px 32px;
}

.card-heading {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.auth-explain {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.auth-card form { display: flex; flex-direction: column; }

.auth-card label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 6px;
}

.auth-card label:first-of-type { margin-top: 0; }

.auth-card input {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.auth-card input:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-primary {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: 7px;
  padding: 11px 16px;
  margin-top: 24px;
  cursor: pointer;
  transition: background 120ms ease;
  text-align: center;
}

.btn-primary:hover { background: var(--accent-ink); }

.btn-link { display: inline-block; text-decoration: none; }

.form-error {
  font-size: 14px;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 7px;
  padding: 9px 12px;
  margin-bottom: 16px;
}

.auth-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 22px;
  text-align: center;
}

.qr-box {
  display: flex;
  justify-content: center;
  padding: 14px 0 6px;
}

.qr-box svg {
  width: 208px;
  height: 208px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.topbar-right { display: flex; align-items: center; gap: 16px; }

.topbar-user { font-size: 13px; color: var(--muted); }

.btn-quiet {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 120ms ease, color 120ms ease;
}

.btn-quiet:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hub ---------- */

.hub {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  flex: 1 0 auto;
}

.hub-title {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hub-lede {
  font-size: 15px;
  color: var(--muted);
  margin: 6px 0 36px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 26px 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
}

a.tile:hover {
  box-shadow: var(--shadow-lift);
  border-color: #d8d4c9;
  transform: translateY(-1px);
}

.tile-primary {
  margin-bottom: 22px;
  border-left: 3px solid var(--accent);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.tile-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.tile h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.tile-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.tile-links { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }

.tile-sublink {
  font-size: 14px;
  font-weight: 550;
  color: var(--accent);
  text-decoration: none;
}

.tile-sublink:hover { text-decoration: underline; }

.tile-sublink-off { color: var(--muted); font-weight: 400; }

.tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.tile-go { font-size: 17px; color: var(--accent); }

.stamp {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 11px;
}

.stamp-muted { color: var(--muted); background: #efede7; }

.stamp-amber { color: var(--amber); background: var(--amber-soft); }

/* ---------- document pages ---------- */

.doc-page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 24px 24px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.doc-head { margin-bottom: 16px; }

.doc-head h1 {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.doc-stamps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.doc-note { margin-bottom: 14px; font-size: 14px; }

.doc-frame {
  width: 100%;
  flex: 1 0 auto;
  min-height: 72vh;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.empty-card {
  padding: 44px 40px;
  text-align: center;
  max-width: 520px;
  margin: 8vh auto 0;
}

.empty-card h2 { font-size: 19px; margin-bottom: 8px; }
.empty-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }

/* ---------- footer ---------- */

.site-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 22px 16px 26px;
}

.site-footer p {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
