:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #141414;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #141414;
}

main {
  width: min(calc(100% - 40px), 430px);
  margin: 0 auto;
  padding: 48px 0 64px;
}

.brand {
  margin: 0 0 52px;
  color: #e50914;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h1 {
  margin: 0 0 32px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  color: #b3b3b3;
  line-height: 1.5;
}

label {
  display: block;
  margin: 0 0 8px;
  color: #d8d8d8;
  font-size: 14px;
  font-weight: 600;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.label-row label {
  margin: 0 0 8px;
}

a {
  color: #b3b3b3;
  font-size: 13px;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

input,
select,
button {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  font: inherit;
}

input,
select {
  border: 1px solid #444444;
  background: #1f1f1f;
  color: #ffffff;
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

button {
  margin-top: 28px;
  border: 0;
  background: #ffffff;
  color: #141414;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #e6e6e6;
}

button:focus-visible {
  outline: 3px solid #e50914;
  outline-offset: 3px;
}

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

.error {
  margin: 16px 0 0;
  color: #ff8a9b;
  font-size: 14px;
}

#loading,
#expired,
#sent {
  text-align: center;
}

#loading p,
#sent p,
#expired p {
  margin: 12px 0 0;
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 80px auto 18px;
  border: 3px solid #3a3a3a;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 56px auto 24px;
  border-radius: 50%;
  background: #46d369;
  color: #141414;
  font-size: 28px;
  font-weight: 800;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  main {
    padding-top: 32px;
  }

  .brand {
    margin-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
