:root {
  color-scheme: dark;
  --bg: #141314;
  --ink: #eeeeef;
  --muted: #c3bec5;
  --rose: #e59ba8;
  --wine: #6b1225;
  --line: #ffffff26;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: radial-gradient(ellipse at 85% 15%, #4c1d2933, transparent 58%), var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { width: min(100%, 620px); }

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 35px;
}

.brand img { width: 46px; height: 46px; filter: invert(1); flex: none; }
.brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.brand-name span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 39px 42px 32px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #241c22b3, #191719);
}
.card::before {
  content: '';
  position: absolute;
  right: -115px;
  top: -165px;
  width: 320px;
  height: 390px;
  border: 1px solid #be74872b;
  border-radius: 50%;
  transform: rotate(-30deg);
  pointer-events: none;
}
.card > * { position: relative; }
.eyebrow {
  margin: 0 0 22px;
  color: var(--rose);
  font-size: 11px;
  letter-spacing: .18em;
  line-height: 1.6;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 20px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 6vw, 49px);
  font-weight: 400;
  letter-spacing: -.047em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 em { font-weight: 400; color: var(--rose); }
p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.introduction { max-width: 440px; }
form { margin-top: 27px; }
.field + .field { margin-top: 20px; }
label { display: block; margin-bottom: 9px; font-size: 14px; line-height: 1.4; color: #e6dce2; }
input:not([type='hidden']) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #8d778680;
  border-radius: 0;
  background: #141214;
  color: var(--ink);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
  caret-color: var(--rose);
  transition: border-color 160ms ease, background-color 160ms ease;
}
input:not([type='hidden']):hover { border-color: #b79bab; }
input:not([type='hidden']):focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-color: var(--rose); }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px #211b21 inset; caret-color: var(--rose); }
button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  min-height: 54px;
  margin-top: 25px;
  padding: 14px 20px;
  border: 1px solid #b26676;
  border-radius: 0;
  background: var(--wine);
  color: #fff3f5;
  font: 15px/1.5 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
button span { font-size: 22px; line-height: 1; }
button:hover { background: #85283e; border-color: #e3a0af; }
button:active { background: #541020; }
button:focus-visible { outline: 3px solid #f4c2cc; outline-offset: 5px; }
.error {
  margin-bottom: 22px;
  padding: 13px 15px;
  border: 1px solid #b56f81;
  background: #541c2b55;
  color: #ffd6df;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.error:empty { display: none; }
.help {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
}
footer { margin-top: 22px; color: #aaa0aa; font-size: 11px; line-height: 1.75; }
footer span { display: block; }
.preview-note { margin-bottom: 3px; color: #c3b5c0; letter-spacing: .055em; }
::selection { background: #7a263b; color: white; }

@media (max-width: 480px) {
  body { padding: 28px 20px; }
  .brand { margin-bottom: 28px; }
  .brand-name { font-size: 27px; }
  .card { padding: 30px 25px 26px; }
  .eyebrow { font-size: 10px; margin-bottom: 20px; }
  h1 { font-size: clamp(34px, 9.3vw, 42px); }
  p { font-size: 14px; }
  form { margin-top: 25px; }
  .help { font-size: 12px; margin-top: 26px; padding-top: 20px; }
  footer { font-size: 11px; }
}

@media (max-width: 350px) {
  body { padding-inline: 15px; }
  .card { padding-inline: 21px; }
  h1 { font-size: 32px; }
  .eyebrow { letter-spacing: .13em; }
}

@media (prefers-reduced-motion: reduce) {
  input:not([type='hidden']), button { transition: none; }
}
