:root {
  color-scheme: light;
  --purple: #6d4cff;
  --purple-deep: #3516b7;
  --ink: #17134a;
  --muted: #625e73;
  --surface: #ffffff;
  --surface-alt: #faf7ff;
  --border: #e7dff4;
  --danger: #c6283d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(180deg, #f7f1ff 0, #fff 360px);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

header img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); line-height: 1.1; }
h2 { margin: 28px 0 8px; font-size: 20px; }
p, li { color: var(--muted); }
a { color: var(--purple-deep); font-weight: 700; }

.eyebrow {
  margin: 0 0 2px;
  color: var(--purple-deep);
  font-weight: 800;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(53, 22, 183, .08);
  padding: clamp(20px, 4vw, 34px);
}

.notice {
  margin: 20px 0;
  padding: 16px 18px;
  background: #f1ebff;
  border-radius: 14px;
  color: var(--purple-deep);
}

label { display: block; margin: 16px 0 6px; font-weight: 800; }

input {
  width: 100%;
  border: 1px solid #cbc2dc;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
}

button {
  width: 100%;
  margin-top: 20px;
  border: 0;
  border-radius: 13px;
  background: var(--danger);
  color: white;
  padding: 14px 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:disabled { opacity: .55; cursor: wait; }

#result {
  display: none;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: #f7f4fb;
}

#result.success { display: block; background: #e7f8ee; color: #126a39; }
#result.error { display: block; background: #ffeaed; color: #9d1d31; }

footer { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 520px) {
  main { padding-top: 22px; }
  header img { width: 48px; height: 48px; border-radius: 13px; }
}
