:root {
  --ink: #102318;
  --paper: #f7faf7;
  --muted: #5f7466;
  --line: rgba(16, 35, 24, 0.12);
  --accent: #2f8f63;
  --accent-ink: #06140c;
  --danger: #b5473c;
  --gold: #b8922f;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #0b1410;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}
.visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 16s ease-in-out infinite alternate;
}
.visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 12, 0.28), rgba(8, 16, 12, 0.78)),
    linear-gradient(90deg, rgba(8, 16, 12, 0.15), rgba(8, 16, 12, 0.55));
}
.visual-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  color: #f3f7f4;
  animation: rise .8s ease both;
}
.mark { width: 56px; height: 56px; object-fit: contain; margin-bottom: 1.2rem; }
.tag {
  margin: 0 0 .7rem;
  letter-spacing: .16em;
  color: var(--gold);
  font-size: .86rem;
}
.visual-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  letter-spacing: .1em;
  line-height: 1.05;
}
.sub {
  margin: .7rem 0 0;
  color: rgba(243, 247, 244, 0.78);
  font-size: 1.05rem;
}
.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(47, 143, 99, 0.12), transparent 60%),
    var(--paper);
  padding: 2rem;
}
.panel-inner {
  width: min(420px, 100%);
  animation: rise .8s ease .08s both;
}
.panel-head { margin-bottom: 1.6rem; }
.wordmark {
  display: block;
  height: 34px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 1.2rem;
}
.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}
.panel-head p {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.field span { color: var(--muted); }
.field input {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: .85rem .95rem;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
  border-color: rgba(47, 143, 99, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 143, 99, 0.14);
}
.btn {
  width: 100%;
  margin-top: .4rem;
  border: 0;
  border-radius: 8px;
  padding: .95rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.error {
  margin: 0 0 .85rem;
  color: var(--danger);
  font-size: .88rem;
  line-height: 1.5;
}
.panel-foot {
  margin-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .8rem;
}
.panel-foot a {
  color: var(--accent);
  text-decoration: none;
}
@keyframes drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.07) translate(-1%, -1%); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .visual { min-height: 34vh; }
  .visual-copy { padding: 1.5rem; }
  .visual-copy h1 { font-size: 2.4rem; }
}
