:root {
  color-scheme: light;
  --background: #fff8f5;
  --surface: #fffdfb;
  --ink: #2c2528;
  --muted: #725f67;
  --line: #ead9d2;
  --brand: #9e5363;
  --brand-dark: #743548;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --success: #137333;
  --success-bg: #edf7ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background: var(--background);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 5vw, 44px);
}

.brand {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: 0;
}

.lead,
.support {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}

input:focus {
  outline: 3px solid rgba(158, 83, 99, 0.22);
  border-color: var(--brand);
}

.checkbox {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 600;
}

.checkbox input {
  min-height: auto;
  margin-top: 4px;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.primary {
  background: var(--brand);
  color: white;
}

.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--brand-dark);
}

.danger-button {
  background: var(--danger);
  color: white;
}

.link-button {
  background: transparent;
  color: var(--brand-dark);
  text-decoration: underline;
  justify-self: start;
  padding-left: 0;
}

.divider {
  display: grid;
  place-items: center;
  margin: 8px 0;
  color: var(--muted);
}

.identity,
.danger,
.notice,
.success {
  border-radius: 8px;
  padding: 16px;
}

.identity {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
}

.identity span {
  color: var(--muted);
}

.danger {
  border: 1px solid rgba(180, 35, 24, 0.25);
  background: var(--danger-bg);
}

.danger ul {
  margin: 0;
  padding-left: 20px;
}

.notice {
  background: var(--danger-bg);
  color: var(--danger);
}

.success {
  background: var(--success-bg);
  color: var(--success);
}

.message {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: var(--success);
  font-weight: 700;
}

.message.error {
  color: var(--danger);
}

a {
  color: var(--brand-dark);
  font-weight: 800;
}

[hidden] {
  display: none !important;
}
