.registration-page {
  min-height: 100vh;
}

.registration-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - 32px, 520px);
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 34px 0 28px;
}

.registration-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.registration-back:hover,
.registration-login a:hover,
.auth-register-link a:hover {
  color: var(--teal-dark);
}

.registration-back svg {
  width: 17px;
  height: 17px;
}

.registration-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(31, 62, 73, 0.15);
}

.registration-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 27px;
}

.registration-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--teal);
}

.registration-mark svg {
  width: 23px;
  height: 23px;
}

.registration-brand p,
.registration-brand strong {
  display: block;
  margin: 0;
}

.registration-brand p {
  color: var(--subtle);
  font-family: "DM Sans", sans-serif;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.registration-brand strong {
  margin-top: -1px;
  font-size: 0.96rem;
}

.registration-heading h1,
.registration-success h1 {
  margin: 2px 0 7px;
  font-size: clamp(1.5rem, 5vw, 1.9rem);
}

.registration-heading > p:last-child,
.registration-success > p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.viewer-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 19px 0;
  padding: 10px 12px;
  border: 1px solid #cde5e5;
  border-radius: 11px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 0.73rem;
  font-weight: 600;
}

.viewer-notice svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

#registration-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

#registration-form .field small {
  color: var(--subtle);
  font-size: 0.66rem;
  font-weight: 500;
}

#registration-form .form-error {
  margin-top: 0;
}

.registration-submit {
  display: inline-flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.registration-login,
.registration-footnote {
  color: var(--subtle);
  font-size: 0.7rem;
  text-align: center;
}

.registration-login {
  margin: 17px 0 0;
}

.registration-login a,
.auth-register-link a {
  color: var(--teal);
  font-weight: 700;
}

.registration-footnote {
  margin: 15px 0 0;
}

.registration-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.registration-success {
  padding: 28px 6px 12px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 21px;
  color: #fff;
  background: var(--confirmed);
  box-shadow: 0 12px 26px rgba(48, 145, 116, 0.22);
}

.success-mark svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.success-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  text-decoration: none;
}

.auth-register-link {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 560px) {
  .registration-shell {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
  }

  .registration-back {
    margin: 18px 18px 13px;
  }

  .registration-card {
    flex: 1;
    padding: 24px 20px 30px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -5px 30px rgba(31, 62, 73, 0.08);
  }

  .registration-footnote {
    display: none;
  }
}
