
:root {
  --background: 145 40% 96%;
  --foreground: 145 20% 22%;
  --card: 145 36% 100%;
  --card-foreground: 145 30% 18%;
  --primary: 145 45% 40%;
  --primary-foreground: 0 0% 100%;
  --muted: 145 24% 92%;
  --muted-foreground: 145 25% 40%;
  --border: 145 35% 86%;
  --input: 145 35% 92%;
  --ring: 145 45% 45%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}
body a {
  color: hsl(var(--primary));
  text-decoration: none;
}
.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
header {
  background: hsla(145, 40%, 92%, 0.95);
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: Lora, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: hsl(var(--primary));
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
nav a {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  background: hsla(145, 45%, 90%, 0.85);
  transition: background 0.2s ease, color 0.2s ease;
}
nav a:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.card {
  width: 100%;
  max-width: 560px;
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.08);
}
.card h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.1;
}
.card p {
  margin: 0 0 1.5rem;
  color: hsl(var(--muted-foreground));
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.field input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--input));
  color: hsl(var(--foreground));
  font-size: 1rem;
}
.field input:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}
.actions {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  cursor: pointer;
}
.button-secondary {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}
.status {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-weight: 600;
  display: none;
}
.status.visible {
  display: block;
}
.status.error {
  background: #ffe7e7;
  color: #8b1a1a;
  border: 1px solid #f1c0c0;
}
.status.success {
  background: #e7f5e7;
  color: #1f5d22;
  border: 1px solid #b8ddac;
}
.note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    width: 100%;
  }
}
