/* Field Notes Press — Shared Styles
   Used by index.html (contributor portal) and admin.html (editorial admin) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111;
  --white: #fff;
  --off-white: #f7f7f7;
  --bg: #f2f2f2;
  --border: #e0e0e0;
  --border-dark: #c0c0c0;
  --muted: #777;
  --muted-light: #aaa;
  --success: #1a6638;
  --success-bg: #edf7f1;
  --warning: #7a4f00;
  --warning-bg: #fdf6e3;
  --error: #b91c1c;
  --error-bg: #fef2f2;
  --info: #1d4ed8;
  --info-bg: #eff6ff;
  --heading: 'Inter', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

html, body {
  height: 100%;
  color: var(--black);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
header {
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}

.masthead {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--black);
}

/* ── Form system ── */
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field-row { display: grid; gap: 0.75rem; }
.field-row.cols-2 { grid-template-columns: 1fr 1fr; }

label.field-label {
  font-family: var(--heading);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="text"],
input[type="date"],
input[type="password"] {
  font-family: var(--body);
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-dark);
  background: var(--white);
  color: var(--black);
  border-radius: 3px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
input:focus { border-color: var(--black); }

.field-hint { font-size: 0.72rem; color: var(--muted-light); }

/* ── Loading dots ── */
.loading-dots { display: inline-flex; gap: 5px; }
.loading-dots span {
  width: 5px; height: 5px;
  background: var(--border-dark);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ── Animations ── */
@keyframes pulse {
  0%, 100% { opacity: .3; transform: scale(.7); }
  50%       { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }