:root{
  --bg:#b9cc6a;
  --bg2:#a9bf56;
  --card:#d9e8a6;
  --card2:#e8f2c4;
  --border:#7f9a2e;
  --text:#2f3a12;
  --muted:#47551e;
  --accent:#6f8d1f;
  --shadow: 0 18px 50px rgba(37, 48, 10, .25);
  --heart: rgba(84, 102, 28, .30);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 20% 12%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(900px 520px at 75% 55%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

.page{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:36px 18px;
}

.page::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  opacity:.22;
  background-image: url("/assets/background-pattern.png");
  background-repeat: repeat;
  background-size: 220px 220px;
  mix-blend-mode: multiply;
}

.card{
  width:min(900px, 100%);
  background: linear-gradient(180deg, var(--card2), var(--card));
  border:2px solid rgba(127,154,46,.55);
  border-radius:22px;
  padding:26px 22px 22px;
  box-shadow:var(--shadow);
  position:relative;
}

.topline{
  display:flex;
  justify-content:center;
  margin-bottom: 14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  font-weight:800;
  letter-spacing:.06em;
  text-transform: uppercase;
  color: rgba(47,58,18,.80);
  background: rgba(255,255,255,.35);
  border:1px solid rgba(127,154,46,.45);
  padding:8px 14px;
  border-radius:999px;
}

h1{
  margin:14px 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height:1.05;
}

.brand{
  display:flex;
  justify-content:center;
  margin: 6px 0 12px;
}
.logo{
  width: min(520px, 92%);
  height: auto;
  filter: drop-shadow(0 16px 26px rgba(25,35,8,.22));
}

.lead{
  margin:0 0 10px;
  color: rgba(47,58,18,.80);
  font-size: 15px;
  line-height:1.55;
  text-align:center;
}

.headline{
  margin: 10px auto 10px;
  max-width: 44ch;
  text-align:center;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  font-weight: 700;
  color: rgba(47,58,18,.92);
}
.sub{
  margin: 0 auto 14px;
  max-width: 54ch;
  text-align:center;
  color: rgba(47,58,18,.80);
  font-size: 16px;
  line-height: 1.55;
}

.footer{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(127,154,46,.55);
  color: rgba(47,58,18,.75);
  font-weight: 700;
  letter-spacing: .02em;
}
.dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(111,141,31,.9);
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.form{
  max-width: 520px;
  margin: 12px auto 0;
  display:grid;
  gap: 12px;
}
.field{
  display:grid;
  gap: 6px;
}
.label{
  font-weight: 700;
  color: rgba(47,58,18,.85);
  font-size: 13px;
}
.input{
  appearance:none;
  border-radius: 14px;
  border: 1px solid rgba(127,154,46,.55);
  padding: 12px 12px;
  background: rgba(255,255,255,.55);
  color: rgba(47,58,18,.95);
  outline: none;
  font-size: 15px;
}
.input:focus{
  box-shadow: 0 0 0 4px rgba(127,154,46,.18);
  border-color: rgba(111,141,31,.9);
}
.button{
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  letter-spacing:.02em;
  color: #fff;
  background: linear-gradient(180deg, rgba(111,141,31,1), rgba(98,124,27,1));
  box-shadow: 0 12px 22px rgba(47,58,18,.18);
  cursor: pointer;
}
.button:hover{
  filter: brightness(1.02);
}
.alert{
  max-width: 520px;
  margin: 8px auto 0;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(140, 40, 40, .25);
  background: rgba(255, 255, 255, .55);
  color: rgba(80, 18, 18, .95);
  font-weight: 700;
  text-align: center;
}

/* Admin layout */
.admin{
  min-height:100vh;
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  padding: 18px;
  align-items:start;
}
@media (max-width: 900px){
  .admin{ grid-template-columns: 1fr; }
}
.admin-nav{
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.50), rgba(255,255,255,.30));
  border: 1px solid rgba(127,154,46,.45);
  box-shadow: var(--shadow);
  padding: 14px 14px;
  position: sticky;
  top: 16px;
}
.admin-brand{ display:flex; justify-content:center; padding: 6px 0 10px; }
.admin-logo{ width: 220px; height:auto; }
.admin-user{
  border-top: 1px dashed rgba(127,154,46,.45);
  border-bottom: 1px dashed rgba(127,154,46,.45);
  padding: 10px 6px;
  margin: 6px 0 10px;
}
.admin-user-label{ font-weight: 700; font-size: 12px; color: rgba(47,58,18,.70); }
.admin-user-name{ font-weight: 900; letter-spacing:.02em; }
.admin-links{ display:grid; gap: 8px; padding-top: 6px; }
.admin-link{
  text-decoration:none;
  color: rgba(47,58,18,.90);
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(127,154,46,.35);
  background: rgba(255,255,255,.35);
}
.admin-link.is-active{
  background: rgba(111,141,31,.16);
  border-color: rgba(111,141,31,.55);
}
.admin-content{ }
.admin-card{
  width: 100%;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 2px solid rgba(127,154,46,.55);
  box-shadow: var(--shadow);
  padding: 18px 18px;
}
.admin-h1{ margin: 0; font-size: 24px; }
.admin-p{ margin: 8px 0 0; color: rgba(47,58,18,.80); font-weight: 600; }
.admin-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.admin-action, .admin-secondary{
  text-decoration:none;
  font-weight: 900;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(127,154,46,.55);
}
.admin-action{
  color: #fff;
  background: linear-gradient(180deg, rgba(111,141,31,1), rgba(98,124,27,1));
}
.admin-secondary{
  color: rgba(47,58,18,.90);
  background: rgba(255,255,255,.45);
}
.admin-table{
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.35);
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(127,154,46,.35);
}
.admin-table th, .admin-table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(127,154,46,.22);
  text-align:left;
  vertical-align: middle;
}
.admin-table th{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(47,58,18,.70);
  background: rgba(255,255,255,.35);
}
.admin-icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(127,154,46,.35);
  background: rgba(255,255,255,.45);
  text-decoration:none;
  color: rgba(47,58,18,.90);
  font-weight: 900;
}
.form-wide{ max-width: 720px; }
.admin-checklist{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 720px){
  .admin-checklist{ grid-template-columns: 1fr; }
}
.admin-check{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(127,154,46,.30);
  background: rgba(255,255,255,.35);
  font-weight: 700;
}
.admin-muted{ color: rgba(47,58,18,.70); font-weight: 700; padding: 8px 0; }
.admin-photo-grid{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 10px;
}
.admin-photo{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(127,154,46,.35);
  background: rgba(255,255,255,.35);
}

