:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #667085;
  --line: #dfe3e8;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --accent: #3659d9;
  --accent-hover: #2948bd;
  --danger: #a92727;
  --danger-bg: #fff1f0;
  --success: #17633b;
  --success-bg: #ebf8f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(54, 89, 217, 0.09), transparent 28rem),
    var(--canvas);
  color: var(--ink);
}

.shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.card {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(23, 32, 42, 0.09);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(23, 32, 42, 0.08);
}

.card--compact {
  width: min(440px, 100%);
  margin: 5vh auto 0;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 750;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(1.85rem, 6vw, 2.5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.intro {
  margin-bottom: 30px;
  color: var(--muted);
  line-height: 1.6;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin-bottom: 0;
}

.form-stack {
  display: grid;
  gap: 10px;
}

label {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 680;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input,
select {
  height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 170px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(54, 89, 217, 0.13);
}

button {
  min-height: 46px;
  margin-top: 18px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 720;
  transition: background 120ms ease, transform 120ms ease;
}

button:hover {
  background: var(--accent-hover);
}

button:active {
  transform: translateY(1px);
}

.button-secondary {
  min-height: 40px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--canvas);
}

.label-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.label-row label {
  margin: 0;
}

.label-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.notice--error {
  border: 1px solid #f3c5c2;
  background: var(--danger-bg);
  color: var(--danger);
}

.notice--success {
  border: 1px solid #b9e3c9;
  background: var(--success-bg);
  color: var(--success);
}

.text-link {
  color: var(--accent);
  font-weight: 680;
}

@media (max-width: 560px) {
  .shell {
    padding: 24px 0;
  }

  .topbar {
    align-items: end;
  }

  .label-row {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }
}

