:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, sans-serif;
  color: #281d37;
  background: #f5effd;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: clamp(1rem, 5vw, 3.5rem); }

main {
  max-width: 39rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 3rem);
  border: 1px solid #dcd0eb;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 16px 48px #39215b12;
}

.brand { color: #573280; font-weight: 700; }
h1 { margin: .85em 0 .35em; font-size: clamp(1.8rem, 6vw, 2.85rem); line-height: 1.1; }
h2 { font-size: 1.25rem; line-height: 1.2; }
form { display: grid; gap: .55rem; margin-top: 1.5rem; }
label { font-weight: 650; }

input, button, .button {
  min-height: 3rem;
  padding: .6rem .85rem;
  border-radius: .65rem;
  font: inherit;
}

input { width: 100%; color: inherit; border: 1px solid #8b75a5; }
button, .button {
  display: inline-block;
  border: 1px solid transparent;
  background: #573280;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:disabled { opacity: .7; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #9a5dd5;
  outline-offset: 3px;
}

.link-button, .privacy { color: #573280; text-decoration: underline; }
.link-button { background: transparent; padding-inline: 0; justify-self: start; font-weight: 600; }
#status:empty { margin: 0; }
#status { color: #443053; font-weight: 650; }
#status[data-error] { color: #a22d45; }
.privacy { display: inline-block; margin-top: 1.2rem; }
