body {
  background-color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;
  height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: #293239;
}

.otp-well {
  border: 1px solid #d8dcde;
  border-radius: 4px;
  background: #fff;
  padding: 40px;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-sizing: border-box;
}

.otp-well h1 {
  font-size: 22px;
  line-height: 1.14286;
  font-weight: 600;
  color: #293239;
  margin: 0;
}

.otp-well p {
  padding-top: 8px;
  margin: 0;
  color: #293239;
}

/* css-bedrock.css resets strong to inherit, so restore emphasis at Garden's bold weight. */
.otp-well strong {
  font-weight: 600;
}

.otp-well--centered h1 {
  text-align: center;
}

.otp-well--centered h1 + p {
  padding-top: 32px;
}

/* Spacing above a field: the field owns this margin (not a sibling
   combinator off the intro paragraph) so it holds regardless of markup
   between them, e.g. verify.html's hidden token input. */
.otp-field {
  margin-top: 24px;
  margin-bottom: 28px;
}

.cf-turnstile {
  margin-bottom: 16px;
}

/* Transient success notification pinned top-right; fades out after a 5s
   minimum on-screen time since there's no Garden css-notifications package. */
.otp-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(41, 50, 57, 0.15);
  animation: otp-notification-hide 0.5s ease-in 5s forwards;
}

@keyframes otp-notification-hide {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Persistent Garden alert sitting between the intro copy and the field. */
.otp-alert {
  margin-top: 24px;
}

.otp-well .c-field__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.otp-required-mark {
  color: #cd3642;
}

.otp-required-hint {
  color: #68737d;
  font-weight: normal;
}

/* Anchors styled as buttons don't get Garden's underline reset; 18px matches
   the spacer between a well's copy and its action. */
a.c-btn--primary {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 18px;
}

/* Secondary action stacked directly under the primary button. */
a.otp-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 12px;
}

/* A button that reads as a link, used for the secondary resend action. */
.otp-link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #1f73b7;
  cursor: pointer;
  text-decoration: none;
}

.otp-link-button:hover {
  text-decoration: underline;
}

.otp-link-button:disabled {
  color: #68737d;
  cursor: default;
  text-decoration: none;
}

.footnotes {
  margin-top: 16px;
  font-size: 14px;
  color: #68737d;
}

/* Consecutive footnotes read as one group rather than separate notes. */
.footnotes + .footnotes {
  margin-top: 8px;
}

.footnotes a {
  color: #1f73b7;
  text-decoration: none;
}

.footnotes a:hover {
  text-decoration: underline;
}
