:root {
  --bg: #f4f1ec;
  --card: #ffffff;
  --card-soft: #fffaf2;
  --ink: #1f1f1f;
  --muted: #5f5f5f;
  --accent: #0f4c5c;
  --accent-strong: #0c3f4c;
  --accent-2: #e36414;
  --border: #d9d2c7;
  --danger: #a61b1b;
  --shadow: 0 18px 40px rgba(22, 28, 45, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(227, 100, 20, 0.08), transparent 28%),
    radial-gradient(circle at right center, rgba(15, 76, 92, 0.12), transparent 32%),
    var(--bg);
}

.page-shell {
  width: min(960px, calc(100% - 32px));
  margin: 5vh auto;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  padding: 32px 32px 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.lead {
  margin: 14px 0 8px;
  font-size: 1.02rem;
  color: #343434;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.validation-form {
  padding: 8px 32px 32px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-soft);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 76, 92, 0.14);
  background: #fff;
}

.captcha-field {
  align-self: end;
}

.captcha-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8f4ee);
}

.captcha-card img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.captcha-hint {
  margin: 8px 0 0;
  color: #7a756d;
  font-size: 0.88rem;
}

.actions {
  margin-top: 26px;
}

.primary-action {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.primary-action:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.invalid {
  display: block;
  margin-top: 8px;
  color: var(--danger);
  font-size: 0.88rem;
}

.error-card {
  padding-bottom: 0;
}

.error-panel {
  margin: 8px 32px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.error-title {
  padding: 14px 18px;
  background: rgba(227, 100, 20, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.error-body {
  padding: 20px 18px;
}

.error-message {
  margin-top: 0;
  margin-bottom: 16px;
  color: #343434;
  line-height: 1.6;
}

.secondary-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.secondary-link:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 960px);
    margin: 18px auto;
  }

  .hero-copy,
  .validation-form,
  .error-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-card {
    border-radius: 16px;
  }

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

  .hero-copy {
    padding-top: 22px;
  }

  .validation-form {
    padding-top: 2px;
    padding-bottom: 22px;
  }

  .error-panel {
    margin: 0 18px 22px;
  }
}
