:root {
  --ink: #14231a;
  --muted: #4d6356;
  --paper: #f3f7f1;
  --panel: rgba(255, 255, 255, 0.72);
  --line: rgba(20, 35, 26, 0.12);
  --accent: #1f8a4c;
  --accent-deep: #0f5c32;
  --warn: #9a3412;
  --ok: #166534;
  --shadow: 0 24px 60px rgba(20, 50, 30, 0.12);
  --font-display: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 12% -10%, #c8e8ff 0%, transparent 55%),
    radial-gradient(700px 480px at 92% 8%, #d9f5c8 0%, transparent 50%),
    linear-gradient(165deg, #eaf4ff 0%, #f3f7f1 42%, #e7f0e2 100%);
  z-index: -2;
}

.trail {
  position: fixed;
  inset: auto -10% -18% -10%;
  height: 42vh;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(31, 138, 76, 0.18), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(15, 92, 50, 0.12), transparent 72%);
  filter: blur(8px);
  animation: drift 14s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: translateX(-2%) translateY(0);
  }
  to {
    transform: translateX(3%) translateY(-3%);
  }
}

.stage {
  width: min(560px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  padding: clamp(2.5rem, 8vh, 5rem) 0 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
}

.brand {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--ink);
}

.panel {
  display: grid;
  gap: 0.95rem;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: rise 0.85s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.guide {
  animation: rise 0.9s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.guide__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.guide__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  counter-reset: guide;
}

.guide__list li {
  position: relative;
  padding-left: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  counter-increment: guide;
}

.guide__list li::before {
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: rgba(31, 138, 76, 0.12);
  border: 1px solid rgba(15, 92, 50, 0.18);
}

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

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: rgba(31, 138, 76, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.12);
}

.row {
  display: flex;
  gap: 0.7rem;
  align-items: end;
}

.field--grow {
  flex: 1;
}

.ghost,
.submit {
  font: inherit;
  cursor: pointer;
  border: none;
}

.ghost {
  height: 3.05rem;
  padding: 0 1rem;
  background: transparent;
  color: var(--accent-deep);
  border: 1px solid rgba(15, 92, 50, 0.28);
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost:hover {
  background: rgba(31, 138, 76, 0.08);
}

.ghost:active,
.submit:active {
  transform: translateY(1px);
}

.submit {
  position: relative;
  margin-top: 0.25rem;
  height: 3.2rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #f7fff9;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.submit:hover {
  filter: brightness(1.05);
}

.submit.is-loading {
  pointer-events: none;
  filter: saturate(0.85);
}

.submit__spin {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.submit.is-loading .submit__label {
  opacity: 0;
}

.submit.is-loading .submit__spin {
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status {
  margin-top: 0.15rem;
  padding: 0.8rem 0.9rem;
  font-size: 0.92rem;
  line-height: 1.45;
  border: 1px solid var(--line);
  animation: rise 0.35s ease both;
}

.status[hidden] {
  display: none;
}

.status.is-ok {
  color: var(--ok);
  background: rgba(22, 101, 52, 0.08);
  border-color: rgba(22, 101, 52, 0.2);
}

.status.is-err {
  color: var(--warn);
  background: rgba(154, 52, 18, 0.08);
  border-color: rgba(154, 52, 18, 0.2);
}

@media (max-width: 480px) {
  .panel {
    padding: 1rem;
  }

  .ghost {
    padding: 0 0.8rem;
  }
}
