:root {
  --navy: #173f37;
  --navy2: #24594f;
  --green: #2f6f63;
  --green2: #3a8678;
  --accent: #3f8a5c;
  --accent-dark: #9ed4b2;
  --mint-btn-text: #12302a;
  --cream: #f4f7f3;
  --light: #e4f0e8;
  --text: #1f2e2b;
  --muted: #5b6b67;
  --line: #d8e3dc;
  --white: #fff;
  --danger: #c0392b;
  --shadow: 0 18px 50px rgba(23, 63, 55, 0.10);
  --radius: 22px;
  --pad: clamp(20px, 5vw, 48px);
  --max: 1180px;
  --site-accent: var(--accent);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(158, 212, 178, 0.35), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(47, 111, 99, 0.12), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, #eef4ef 48%, var(--light) 100%);
  background-attachment: fixed;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--navy); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.brand img { height: 28px; width: auto; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--green), var(--navy));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad) 64px;
}

.page-title {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--navy);
}

.page-lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.55;
}

.property-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(23, 63, 55, 0.94), rgba(47, 111, 99, 0.88)),
    var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--site-accent);
}

.property-banner h1 {
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 6px;
}

.property-banner p {
  margin: 0;
  opacity: 0.86;
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.alert {
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.alert-success {
  border-color: #b7dcc6;
  background: #edf8f1;
  color: #1b4a3a;
}

.alert-error {
  border-color: #f0c2bc;
  background: #fdf1ef;
  color: var(--danger);
}

.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.section-list {
  display: grid;
  gap: 12px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.section-row:hover {
  border-color: #b9cec3;
  transform: translateY(-1px);
}

.section-row h2 {
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.05rem;
  color: var(--navy);
}

.section-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--green2), var(--green));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover { background: linear-gradient(180deg, #449687, var(--navy2)); }

.btn-outline {
  background: transparent;
  border-color: #b9cec3;
  color: var(--navy);
}

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

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

.btn-danger {
  background: #fff;
  border-color: #f0c2bc;
  color: var(--danger);
}

.btn-danger:hover { background: #fdf1ef; }

.btn-sm { padding: 8px 12px; font-size: 0.9rem; }

.login-wrap {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 40px var(--pad);
}

.login-card {
  width: min(440px, 100%);
  padding: 32px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 0.45s ease both;
}

.login-card h1 {
  font-family: Manrope, Inter, sans-serif;
  margin: 8px 0 6px;
  font-size: 1.7rem;
  color: var(--navy);
}

.login-card .eyebrow {
  color: var(--green);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.form-stack { display: grid; gap: 14px; }

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

input[type="email"],
input[type="password"],
input[type="text"],
textarea,
select {
  width: 100%;
  border: 1px solid #c7d6ce;
  border-radius: 14px;
  padding: 11px 13px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

textarea { min-height: 110px; resize: vertical; }

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(63, 138, 92, 0.35);
  border-color: var(--accent);
}

.field-help {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-switcher {
  display: grid;
  gap: 12px;
}

.site-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-choice:hover {
  border-color: #b9cec3;
  box-shadow: var(--shadow);
}

.site-choice strong {
  display: block;
  font-family: Manrope, Inter, sans-serif;
  color: var(--navy);
  margin-bottom: 4px;
}

.site-choice span { color: var(--muted); font-size: 0.9rem; }

.editor-grid {
  display: grid;
  gap: 20px;
}

.field-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.field-block h3 {
  margin: 0 0 12px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 1rem;
  color: var(--navy);
}

.media-preview {
  margin: 10px 0 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, #eef4ef 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(-45deg, #eef4ef 25%, transparent 25%) 0 0 / 16px 16px,
    #fff;
  max-width: 420px;
}

.media-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.collection-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.collection-item:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; }

.footer-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.shell > * { animation: rise 0.4s ease both; }

@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; }
  .section-row { flex-direction: column; align-items: flex-start; }
  .property-banner { padding: 18px; }
}
