:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --border: #e5e5e8;
  --text: #17171a;
  --text-muted: #71717a;
  --accent: #16a34a;
  --accent-soft: #e9f9ee;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 16, 20, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text);
}

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

.hero {
  padding: 56px 0 40px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.card h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}

.card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.footer a.footer-plain {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 28px;
  }
}

/* Login */
.login-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 0 80px;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

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

.lede-small {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.field input {
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field-password {
  position: relative;
  display: flex;
}

.field-password input {
  width: 100%;
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
}

.password-toggle:hover {
  color: var(--text);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-error {
  font-size: 13px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 16px;
}

.form-error.is-hidden {
  display: none;
}

.btn-block {
  width: 100%;
  text-align: center;
}
