:root {
  --bg-top: #f8f7f2;
  --bg-bottom: #e7efe8;
  --ink: #18201d;
  --ink-soft: #33403b;
  --accent: #d45a2f;
  --accent-2: #1e7b62;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-border: rgba(24, 32, 29, 0.12);
  --shadow: 0 20px 60px rgba(31, 45, 39, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: linear-gradient(155deg, var(--bg-top), var(--bg-bottom));
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 32, 29, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 32, 29, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 10% 15%, rgba(212, 90, 47, 0.18), transparent 35%),
    radial-gradient(circle at 82% 75%, rgba(30, 123, 98, 0.16), transparent 40%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  animation: drift 18s ease-in-out infinite alternate;
}

.layout {
  position: relative;
  z-index: 2;
  width: min(980px, 92vw);
  margin: 5vh auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
}

.panel {
  backdrop-filter: blur(6px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  animation: rise 0.8s ease both;
}

.panel-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-hero h1 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.panel-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 38ch;
}

.eyebrow {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--accent-2);
}

.panel-form {
  animation-delay: 0.15s;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input {
  border: 1px solid rgba(24, 32, 29, 0.2);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  font-size: 1rem;
  font-family: "IBM Plex Mono", monospace;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(30, 123, 98, 0.15);
}

button {
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fffdf8;
  background: linear-gradient(90deg, var(--accent), #b84b25);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

button:hover {
  transform: translateY(-1px) scale(1.01);
  filter: saturate(1.05);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 1rem;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
}

.status-neutral {
  background: rgba(24, 32, 29, 0.08);
}

.status-loading {
  background: rgba(30, 123, 98, 0.16);
}

.status-success {
  background: rgba(33, 150, 83, 0.2);
}

.status-error {
  background: rgba(184, 46, 46, 0.18);
}

.hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@keyframes rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-12px, -8px, 0);
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    margin: 3vh auto;
  }
}
