:root {
  --bg: #e8efe8;
  --ink: #14201a;
  --muted: #5d6f66;
  --line: rgba(20, 32, 26, 0.1);
  --accent: #6f9f2e;
  --accent-soft: #d7ef9a;
  --accent-ink: #132016;
  --danger: #b42318;
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --shadow: 0 18px 50px rgba(28, 48, 36, 0.1);
  --radius: 20px;
  --font: "Be Vietnam Pro", sans-serif;
  --display: "Syne", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(215, 239, 154, 0.55), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 10%, rgba(156, 196, 170, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(165deg, #f4f7f2 0%, #e7efe6 42%, #dfe8df 100%);
}

.bg::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -120px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 159, 46, 0.16), transparent 68%);
  filter: blur(8px);
  animation: drift 14s ease-in-out infinite alternate;
}

.bg::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 140, 120, 0.14), transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(24px, 18px) scale(1.06);
  }
}

.shell {
  width: min(720px, calc(100% - 32px));
  margin: 56px auto 80px;
  display: grid;
  gap: 16px;
  animation: rise 0.5s ease both;
}

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

.brand {
  padding: 4px 4px 8px;
}

.brand__mark {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--accent);
}

.brand h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.brand__sub {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 52ch;
  font-size: 0.98rem;
}

.panel {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.status {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 251, 240, 0.85));
}

.status__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9aa89f;
  box-shadow: 0 0 0 4px rgba(20, 32, 26, 0.05);
  flex-shrink: 0;
}

.dot.ok {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(111, 159, 46, 0.16);
}

.dot.warn {
  background: #d4a017;
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.16);
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
  background: var(--card-solid);
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 8px;
}

label.full {
  grid-column: 1 / -1;
}

label > span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  background: #f7faf6;
  color: var(--ink);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input[type="text"]::placeholder {
  color: #8a9a91;
}

input[type="text"]:focus {
  border-color: rgba(111, 159, 46, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(111, 159, 46, 0.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 2px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(111, 159, 46, 0.28);
}

.btn--primary:hover {
  background: #628c28;
}

.result h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.2rem;
}

.result ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.error {
  border-color: rgba(180, 35, 24, 0.25);
  background: #fff5f4;
  color: var(--danger);
}

.error p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .shell {
    margin-top: 32px;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .actions .btn {
    width: 100%;
  }
}
