:root {
  font: 16px/24px Geist, -apple-system, "PingFang SC", sans-serif;
  color: #19222c;
  background: #f5f7f9;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: #195aaa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p, h1, h2 {
  margin: 0;
  text-wrap: pretty;
}

h1, h2 {
  text-wrap: balance;
}

.heading-1 {
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
}

.heading-5 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.title-2 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.title-4, .caption-1 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.body-3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.caption-2 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.button-md {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.button-sm {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.muted {
  color: #536576;
}

.site-header {
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #19222c;
  white-space: nowrap;
}

.brand-mark {
  background: #195aaa;
  color: #fff;
  border-radius: 8px;
  padding: 8px;
  font-weight: 600;
}

.login-link {
  display: inline-block;
  border: 1px solid #c6d0da;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.hero {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding: 40px 24px;
}

.hero-description {
  margin-top: 24px;
  max-width: 680px;
  color: #536576;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 16px;
}

.primary, button {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.primary {
  background: #195aaa;
  color: #fff;
  min-height: 44px;
}

.primary:hover {
  background: #124983;
  text-decoration: none;
}

.secondary {
  background: #f1f5f9;
  color: #195aaa;
  border-color: #c6d0da;
  min-height: 44px;
}

.secondary:hover {
  background: #e4edf7;
}

.primary:active, .secondary:active {
  transform: translateY(1px);
}

a, button {
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.register-card {
  background: #fff;
  padding: 32px;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  box-shadow: 0 8px 32px #19222c06;
  scroll-margin-top: 24px;
}

.register-card h2 {
  margin-bottom: 8px;
}

.register-card form {
  margin-top: 24px;
}

.register-card label {
  display: block;
  margin-bottom: 8px;
}

input {
  font: inherit;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #b9c6d3;
  border-radius: 6px;
  padding: 8px 12px;
  color: #19222c;
  background: #fff;
}

input::placeholder {
  color: #6d7b88;
}

input:disabled {
  background: #f5f7f9;
}

.field-help {
  color: #536576;
  margin: 8px 0 16px;
}

.code-row {
  display: flex;
  gap: 8px;
}

.code-row button {
  flex-shrink: 0;
  white-space: nowrap;
}

.feedback {
  color: #195aaa;
}

.error {
  color: #a22b27;
}

.confirmation-field {
  margin-bottom: 16px;
}

.confirmation-field input[aria-invalid="true"] {
  border-color: #a22b27;
}

.feedback:not(:empty), .error:not(:empty) {
  margin-bottom: 16px;
}

.submit {
  width: 100%;
}

.sign-in {
  text-align: center;
  margin-top: 16px;
}

.account-note {
  margin-top: 24px;
}

.mail-help {
  margin-top: 12px;
}

.mail-help summary {
  cursor: pointer;
  color: #195aaa;
}

.mail-help p {
  margin-top: 8px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  background: #fff;
  padding: 12px;
  z-index: 10;
}

.skip:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid #6699d2;
  outline-offset: 3px;
}

.register-route .hero-copy {
  display: none;
}

.register-route .hero {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

@media (max-width: 1120px) {
  .site-header {
    margin: 16px 24px 0;
  }
}

@media (max-width: 900px) {
  .hero {
    gap: 32px;
  }

  .heading-1 {
    font-size: 36px;
    line-height: 40px;
  }

  .register-card {
    padding: 24px;
  }
}

@media (max-width: 680px) {
  .site-header {
    margin: 16px 16px 0;
    padding: 12px 16px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    padding: 4px 8px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px;
    gap: 24px;
  }

  .hero-description {
    margin-top: 16px;
  }

  .hero-actions {
    gap: 16px;
    margin-top: 24px;
  }

  .register-card {
    padding: 24px;
  }

  .code-row button {
    padding: 8px;
  }
}
