/* Feedjot auth-page styles. Minimal, system font, single accent.
 * Color #1d72b8 matches the M2-1 email-template buttons. */

:root {
  /* Brand tokens — kept aligned with public/app/styles.css. */
  --accent: #2563eb;            /* modern blue, brand primary */
  --accent-hover: #1d4ed8;      /* darker hover state */
  --accent-soft: #dbeafe;       /* tinted background for callouts */
  --highlight: #f59e0b;         /* warm amber, the mark's accent dot */
  --text: #111827;              /* near-black, generous contrast */
  --text-muted: #6b7280;        /* secondary copy */
  --text-faint: #9ca3af;        /* labels, placeholders */
  --border: #e5e7eb;
  --border-soft: #f3f4f6;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --error: #dc2626;
  --error-soft: #fee2e2;
  --success: #059669;
  --success-soft: #d1fae5;
  --warn: #d97706;
  --warn-soft: #fef3c7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 16px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-bottom: 32px;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand:hover .brand-mark rect:first-child { fill: var(--accent-hover); }
.brand-mark { display: inline-block; vertical-align: middle; }

.auth-card {
  width: 100%;
  max-width: 400px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 28px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
}

.auth-subtitle {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 9px 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn {
  width: 100%;
  padding: 10px 14px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: white;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.message {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
}
.message.error   { background: var(--error-soft); color: var(--error); }
.message.success { background: var(--success-soft); color: var(--success); }
.message.info    { background: var(--accent-soft); color: var(--accent-hover); }
.message[hidden] { display: none; }

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-footer a { color: var(--accent); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

/* Mobile auth pass — friends-beta users will sign up from their phones. */
@media (max-width: 480px) {
  .auth-shell { padding: 28px 12px 20px; }
  .brand { font-size: 22px; margin-bottom: 22px; }
  .auth-card { padding: 22px 18px 18px; border-radius: 8px; }
  .auth-card h1 { font-size: 20px; }
  .field input { font-size: 16px; }  /* iOS auto-zoom-suppress: ≥ 16px */
}
