body.register-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.register-page section {
  margin: 0;
}

body.register-page::before,
body.register-page::after {
  display: none;
}

body.register-page .Welcome {
  width: 100vw;
  border-radius: 0;
}

body.register-page #welcome {
  min-height: min(90svh, 980px) !important;
}

.register-back-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-green);
  text-decoration: none;
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.register-back-link:hover {
  color: var(--brand-green);
  transform: translateY(-1px);
}

.register-back-link:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.bubble-form {
  width: min(100%, 430px);
  display: grid;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  align-self: center;
}

.bubble-form h2,
.bubble-form p {
  margin: 0;
  text-align: center;
}

.account-role-field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.account-role-field span {
  font-weight: 700;
  color: var(--text-ink);
}

.bubble-form h2 {
  color: var(--brand-green);
}

.bubble-form .error {
  color: var(--text-ink);
  font-weight: 600;
}

.bubble-form-actions {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.legal-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--text-soft);
}

.legal-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.legal-check span {
  line-height: 1.5;
}

.auth-form-shell {
  width: min(100%, 480px);
}

body.register-page .auth-form-shell {
  margin-top: 50px;
}

@media (max-width: 860px) {
  .register-back-link {
    top: 12px;
    left: 12px;
  }

  body.register-page .bubble-form {
    width: 100%;
  }
}
