:root {
  color-scheme: dark;
  --ink: #f4f2ea;
  --muted: #a7b1ab;
  --ground: #101714;
  --panel: #18231f;
  --line: rgba(244, 242, 234, 0.16);
  --leaf: #c3dc54;
  --error: #ff9686;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 16%, rgba(195, 220, 84, 0.16), transparent 24rem),
    radial-gradient(circle at 12% 88%, rgba(255, 115, 93, 0.12), transparent 25rem),
    var(--ground);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: linear-gradient(rgba(244,242,234,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(244,242,234,.16) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.62; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--leaf); outline-offset: 4px; }

.access-shell {
  position: relative;
  width: min(1240px, calc(100% - 44px));
  min-height: 100dvh;
  margin: 0 auto;
}

.access-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.garden-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.garden-brand img { width: 38px; height: 38px; }

.garden-return {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.garden-return:hover { color: var(--ink); }

main {
  min-height: calc(100dvh - 158px);
  display: grid;
  place-items: center;
  padding: 68px 0;
}

.access-card {
  position: relative;
  width: min(580px, 100%);
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(24, 35, 31, 0.94);
  box-shadow: 22px 22px 0 var(--leaf);
}

.access-card::before {
  content: "PRIVATE";
  position: absolute;
  top: 22px;
  right: -42px;
  color: rgba(244,242,234,.16);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.32em;
  transform: rotate(90deg);
}

.access-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--leaf);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.access-eyebrow {
  margin: 0 0 16px;
  color: var(--leaf);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(3.15rem, 8vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.access-intro {
  max-width: 430px;
  margin: 26px 0 38px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.72;
}

label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
}

label span { color: var(--muted); font-weight: 500; }

.access-password {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,.04);
}

.access-password:focus-within { border-color: var(--leaf); }

.access-password input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 13px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.access-password input::placeholder { color: #6e7b75; }

.access-eye {
  flex: none;
  display: grid;
  width: 54px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.access-eye svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.access-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  padding: 13px 18px;
  border: 1px solid var(--leaf);
  border-radius: 3px;
  background: var(--leaf);
  color: #17211d;
  font-size: 0.88rem;
  font-weight: 820;
}

.access-submit:hover { background: #d2e86f; }

.access-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--leaf);
  font-size: 0.8rem;
  line-height: 1.6;
}

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

.access-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.65;
}

footer {
  padding: 12px 0 26px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 560px) {
  .access-shell { width: min(100% - 36px, 1240px); }
  .access-header { min-height: 76px; }
  .garden-brand img { width: 34px; height: 34px; }
  .garden-return { font-size: 0.74rem; }
  main { min-height: calc(100dvh - 135px); padding: 42px 0 54px; }
  .access-card { padding: 32px 24px; box-shadow: 12px 12px 0 var(--leaf); }
  .access-card::before { display: none; }
  .access-icon { width: 50px; height: 50px; margin-bottom: 28px; }
  h1 { font-size: clamp(3rem, 17vw, 4.7rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
