/* fresh-mcp – minimal, mobile-first UI */

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

:root {
  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --bg: #f8f9fa;
  --text: #202124;
  --card-bg: #ffffff;
  --border: #dadce0;
  --error: #d93025;
  --success: #1e8e3e;
  --radius: 8px;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* ── Navigation ─────────────────────────────────────── */

.navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.navbar-links {
  display: flex;
  gap: 1rem;
}

.navbar-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.navbar-links a:hover {
  background: var(--bg);
}

.navbar-links a.btn-primary {
  background: var(--primary);
  color: #fff;
}

.navbar-links a.btn-primary:hover {
  background: var(--primary-hover);
}

/* ── Main Content ───────────────────────────────────── */

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

/* ── Card ───────────────────────────────────────────── */

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.card p.subtitle {
  color: #5f6368;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ── Form Elements ──────────────────────────────────── */

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.form-group input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Messages ───────────────────────────────────────── */

.msg {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}

.msg.error {
  background: #fce8e6;
  color: var(--error);
  display: block;
}

.msg.success {
  background: #e6f4ea;
  color: var(--success);
  display: block;
}

/* ── Footer ─────────────────────────────────────────── */

.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #5f6368;
  border-top: 1px solid var(--border);
}

/* ── Links ──────────────────────────────────────────── */

.text-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.text-link:hover {
  text-decoration: underline;
}

.form-footer {
  text-align: center;
  margin-top: 1rem;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 480px) {
  .card {
    padding: 1.5rem 1.25rem;
  }

  .navbar {
    padding: 0.6rem 1rem;
  }
}
