:root {
  --bg: #f1eadf;
  --card: rgba(255, 250, 244, 0.96);
  --line: #d8c8b1;
  --text: #2f2517;
  --muted: #7a6951;
  --accent: #b25c2f;
  --accent-dark: #8f4722;
  --success: #2e7d4f;
  --danger: #a6342e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(219, 171, 102, 0.24), transparent 25%),
    linear-gradient(180deg, #f8f3eb, var(--bg));
}

button,
input {
  font: inherit;
}

.register-shell {
  width: min(100%, 640px);
  padding: 24px;
}

.register-card {
  border: 1px solid rgba(178, 92, 47, 0.18);
  border-radius: 28px;
  background: var(--card);
  padding: 30px;
  box-shadow: 0 22px 50px rgba(88, 60, 32, 0.12);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 34px;
}

.lead {
  margin: 14px 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

label {
  display: block;
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefb;
}

.inline-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
}

button {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
}

button.primary {
  width: 100%;
  margin-top: 20px;
  background: var(--accent);
  color: #fff;
}

button.ghost {
  background: #efe3cf;
  color: var(--text);
}

.message {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}

.message.neutral {
  background: #f8f0e4;
}

.message.success {
  background: rgba(46, 125, 79, 0.08);
  border-color: rgba(46, 125, 79, 0.25);
  color: var(--success);
}

.message.error {
  background: rgba(166, 52, 46, 0.08);
  border-color: rgba(166, 52, 46, 0.25);
  color: var(--danger);
}

@media (max-width: 720px) {
  .register-shell {
    padding: 14px;
  }

  .register-card {
    padding: 20px;
    border-radius: 20px;
  }

  .inline-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }
}
