:root {
  --bg-top: #f4eee3;
  --bg-bottom: #dbe7dc;
  --card: #fffdf8;
  --ink: #1b2a21;
  --muted: #536459;
  --line: #c4d2c5;
  --brand: #2d6a4f;
  --brand-strong: #1f4d39;
  --danger: #972b2b;
  --ok: #205d2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 0%, #fff4db 0%, transparent 30%),
    radial-gradient(circle at 100% 20%, #cee5d5 0%, transparent 25%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
  animation: reveal 520ms ease-out both;
}

.hero {
  margin-bottom: 1.5rem;
}

.lang-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

h1 {
  margin: 0.2rem 0 0.6rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.hero-copy {
  margin: 0;
  max-width: 65ch;
  color: var(--muted);
}

.hero-copy a {
  color: var(--brand-strong);
  font-weight: 700;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 8px 30px rgba(27, 42, 33, 0.08);
  margin-bottom: 1rem;
}

form {
  display: grid;
  gap: 1rem;
}

.grid {
  display: grid;
  gap: 0.9rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  background: #fff;
}

input:focus,
select:focus {
  outline: 2px solid #9ec9b1;
  outline-offset: 1px;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

button:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.92rem;
}

.status.error {
  color: var(--danger);
}

.status.ok {
  color: var(--ok);
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.consent input[type="checkbox"] {
  width: auto;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.action-btn {
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
}

.action-btn.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.section-title {
  margin: 0 0 0.8rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
}

.day-list {
  display: grid;
  gap: 0.6rem;
}

.day-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  display: grid;
  gap: 0.5rem;
}

.day-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.day-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.danger-btn {
  background: #a13535;
}

.danger-btn:hover {
  background: #7c2121;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}
