body.auth-page--registration {
  background:
    radial-gradient(circle at 12% 18%, rgba(234, 235, 196, 0.72), transparent 30rem),
    radial-gradient(circle at 90% 82%, rgba(131, 201, 175, 0.2), transparent 32rem),
    var(--sqrl-home-bg);
  color: var(--sqrl-home-foreground);
  font-family: var(--sqrl-font-body);
}

.auth-page--registration .sqrl-auth-header {
  background: rgba(248, 244, 238, 0.94);
  border-bottom-color: rgba(193, 154, 119, 0.34);
}

.auth-page--registration .sqrl-auth-header__inner {
  max-width: 72rem;
  padding: var(--sqrl-space-2) var(--sqrl-space-4);
}

.auth-page--registration .sqrl-auth-header__home-link {
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(193, 154, 119, 0.28);
  border-radius: var(--sqrl-radius-md);
  color: var(--sqrl-home-foreground);
  font-family: var(--sqrl-font-body);
  min-height: 2.75rem;
}

.auth-page--registration .sqrl-auth-header__logo-link {
  min-height: 2.75rem;
}

.auth-page--registration .sqrl-auth-header__home-link:hover,
.auth-page--registration .sqrl-auth-header__home-link:focus-visible {
  background: #fff;
  border-color: var(--sqrl-home-primary);
}

.auth-page--registration .sqrl-auth-main {
  align-items: stretch;
  padding: 5.25rem var(--sqrl-space-4) var(--sqrl-space-4);
}

.registration-shell {
  background: var(--sqrl-cream-50);
  border: 1px solid rgba(193, 154, 119, 0.42);
  border-radius: var(--sqrl-radius-xl);
  box-shadow: 0 30px 70px -50px rgba(48, 79, 67, 0.72);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(25.5rem, 0.95fr);
  margin: auto;
  max-width: 72rem;
  min-height: 39rem;
  overflow: hidden;
  width: 100%;
}

.registration-story {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(230, 240, 237, 0.68)),
    var(--sqrl-home-muted);
  display: flex;
  flex-direction: column;
  gap: var(--sqrl-space-5);
  justify-content: space-between;
  overflow: hidden;
  padding: var(--sqrl-space-8);
  position: relative;
}

.registration-story::after {
  background: var(--sqrl-sage-200);
  border-radius: 50%;
  content: "";
  height: 12rem;
  opacity: 0.72;
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 12rem;
}

.registration-story__copy,
.registration-story__image-wrap,
.registration-trust {
  position: relative;
  z-index: 1;
}

.registration-eyebrow {
  color: var(--sqrl-auth-primary-strong);
  font-family: var(--sqrl-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 var(--sqrl-space-2);
  text-transform: uppercase;
}

.registration-story h2 {
  color: var(--sqrl-home-foreground);
  font-family: var(--sqrl-font-heading);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

.registration-story__copy > p:last-child {
  color: var(--sqrl-auth-muted-foreground);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: var(--sqrl-space-3) 0 0;
  max-width: 31rem;
}

.registration-story__image-wrap {
  border-radius: var(--sqrl-radius-lg);
  box-shadow: 0 18px 42px -30px rgba(48, 79, 67, 0.7);
  overflow: hidden;
}

.registration-story__image {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.registration-story__badge {
  align-items: center;
  background: rgba(248, 244, 238, 0.94);
  border-radius: var(--sqrl-radius-md);
  bottom: var(--sqrl-space-2);
  color: var(--sqrl-home-foreground);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: var(--sqrl-space-1);
  padding: var(--sqrl-space-2);
  position: absolute;
  right: var(--sqrl-space-2);
}

.registration-story__badge svg {
  color: var(--sqrl-home-primary);
  height: 1rem;
  width: 1rem;
}

.registration-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sqrl-space-2);
}

.registration-trust span {
  align-items: center;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(74, 155, 120, 0.2);
  border-radius: var(--sqrl-radius-md);
  color: var(--sqrl-home-foreground);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 600;
  gap: var(--sqrl-space-1);
  padding: var(--sqrl-space-1) var(--sqrl-space-2);
}

.registration-trust svg {
  color: var(--sqrl-home-primary);
  height: 0.95rem;
  width: 0.95rem;
}

.registration-panel {
  align-self: center;
  background: var(--sqrl-cream-50);
  padding: var(--sqrl-space-8);
  width: 100%;
}

.registration-panel--form {
  align-self: stretch;
  overflow-y: auto;
}

.sign-in-panel {
  align-self: center;
}

.registration-panel__heading {
  color: var(--sqrl-home-foreground);
  font-family: var(--sqrl-font-heading);
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}

.registration-panel__subheading {
  color: var(--sqrl-auth-muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
  margin: var(--sqrl-space-2) 0 var(--sqrl-space-4);
}

.registration-feature {
  align-items: center;
  background: rgba(234, 235, 196, 0.52);
  border: 1px solid rgba(193, 154, 119, 0.28);
  border-radius: var(--sqrl-radius-lg);
  display: grid;
  gap: var(--sqrl-space-2);
  grid-template-columns: 3rem minmax(0, 1fr);
  margin-bottom: var(--sqrl-space-4);
  padding: var(--sqrl-space-3);
}

.registration-feature__icon {
  align-items: center;
  background: var(--sqrl-auth-primary-strong);
  border-radius: var(--sqrl-radius-md);
  color: #fff;
  display: flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.registration-feature__icon svg {
  height: 1.5rem;
  width: 1.5rem;
}

.registration-feature h2 {
  color: var(--sqrl-home-foreground);
  font-family: var(--sqrl-font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.registration-feature p {
  color: var(--sqrl-auth-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
}

.sqrl-form-container {
  padding: 0;
}

.sqrl-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--sqrl-radius-md);
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  font-family: var(--sqrl-font-heading);
  font-size: 1rem;
  font-weight: 700;
  gap: var(--sqrl-space-2);
  justify-content: center;
  margin: 0 0 var(--sqrl-space-2);
  min-height: 3.375rem;
  padding: var(--sqrl-space-2) var(--sqrl-space-3);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.sqrl-btn-primary {
  background: var(--sqrl-auth-primary-strong);
  box-shadow: 0 16px 30px -22px rgba(47, 111, 88, 0.9);
  color: #fff;
}

.sqrl-btn-primary:hover {
  background: var(--sqrl-auth-primary-hover);
  box-shadow: 0 18px 32px -20px rgba(47, 111, 88, 0.95);
  color: #fff;
  transform: translateY(-1px);
}

.sqrl-btn:disabled,
.sqrl-btn[aria-disabled="true"] {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.sqrl-btn svg {
  flex: 0 0 auto;
  height: 1.25rem;
  width: 1.25rem;
}

.sqrl-btn-google {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(193, 154, 119, 0.48);
  color: var(--sqrl-home-foreground);
}

.sqrl-btn-google:hover {
  background: #fff;
  border-color: var(--sqrl-home-primary);
  color: var(--sqrl-home-foreground);
}

.sqrl-btn:focus-visible,
.sqrl-link:focus-visible,
.sqrl-input:focus-visible,
.sqrl-password-toggle:focus-visible {
  outline: 3px solid var(--sqrl-auth-primary-strong);
  outline-offset: 3px;
}

.sqrl-divider {
  align-items: center;
  color: var(--sqrl-auth-muted-foreground);
  display: flex;
  font-size: 0.8rem;
  margin: var(--sqrl-space-3) 0;
}

.sqrl-divider::before,
.sqrl-divider::after {
  background: rgba(193, 154, 119, 0.38);
  content: "";
  flex: 1;
  height: 1px;
}

.sqrl-divider span {
  padding: 0 var(--sqrl-space-2);
}

.sqrl-footer,
.sqrl-footer-links,
.sqrl-security-notice {
  color: var(--sqrl-auth-muted-foreground);
  font-size: 0.875rem;
  text-align: center;
}

.sqrl-footer {
  margin-top: var(--sqrl-space-3);
}

.sqrl-footer-links {
  border-top: 1px solid rgba(193, 154, 119, 0.34);
  margin-top: var(--sqrl-space-4);
  padding-top: var(--sqrl-space-3);
}

.sqrl-footer-links .sqrl-link {
  align-items: center;
  display: inline-flex;
  min-height: 2.75rem;
}

.sqrl-association-banner {
  align-items: flex-start;
  background: rgba(234, 235, 196, 0.52);
  border: 1px solid rgba(193, 154, 119, 0.42);
  border-radius: var(--sqrl-radius-lg);
  color: var(--sqrl-home-foreground);
  display: grid;
  gap: var(--sqrl-space-2);
  grid-template-columns: 3rem minmax(0, 1fr);
  margin-bottom: var(--sqrl-space-3);
  padding: var(--sqrl-space-3);
}

.sqrl-association-banner__icon {
  align-items: center;
  background: var(--sqrl-auth-primary-strong);
  border-radius: var(--sqrl-radius-md);
  color: #fff;
  display: flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.sqrl-association-banner h2 {
  font-family: var(--sqrl-font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 var(--sqrl-space-1);
}

.sqrl-association-banner p {
  color: var(--sqrl-auth-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

.sqrl-association-banner code {
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--sqrl-radius-sm);
  color: var(--sqrl-home-foreground);
  font-size: 0.8rem;
  padding: 0 var(--sqrl-space-1);
}

.sqrl-association-banner .sqrl-association-banner__detail {
  align-items: center;
  display: flex;
  gap: var(--sqrl-space-1);
  margin-top: var(--sqrl-space-1);
}

.sqrl-security-notice {
  align-items: center;
  display: flex;
  gap: var(--sqrl-space-1);
  justify-content: center;
  margin-top: var(--sqrl-space-3);
}

.sqrl-security-notice svg {
  color: var(--sqrl-home-primary);
  height: 1rem;
  width: 1rem;
}

.sqrl-link {
  color: var(--sqrl-auth-primary-strong);
  font-weight: 700;
  text-decoration: none;
}

.sqrl-link:hover {
  color: var(--sqrl-auth-primary-hover);
  text-decoration: underline;
}

.sqrl-link--compact {
  font-size: 0.875rem;
}

.sqrl-form-row {
  align-items: baseline;
  display: flex;
  gap: var(--sqrl-space-2);
  justify-content: space-between;
}

.sqrl-form-group {
  margin-bottom: var(--sqrl-space-3);
}

.sqrl-label {
  color: var(--sqrl-home-foreground);
  display: block;
  font-family: var(--sqrl-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--sqrl-space-1);
}

.sqrl-required-label {
  color: var(--sqrl-auth-muted-foreground);
  font-family: var(--sqrl-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: var(--sqrl-space-1);
}

.sqrl-input {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(193, 154, 119, 0.62);
  border-radius: var(--sqrl-radius-md);
  box-sizing: border-box;
  color: var(--sqrl-home-foreground);
  font-family: var(--sqrl-font-body);
  font-size: 1rem;
  min-height: 3rem;
  padding: var(--sqrl-space-2);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.sqrl-input::placeholder {
  color: rgba(73, 99, 89, 0.62);
}

.sqrl-input:focus {
  background: #fff;
  border-color: var(--sqrl-home-primary);
  box-shadow: 0 0 0 3px rgba(74, 155, 120, 0.12);
  outline: none;
}

.sqrl-input:focus-visible {
  outline: 3px solid var(--sqrl-auth-primary-strong);
  outline-offset: 3px;
}

.sqrl-input--password {
  padding-right: 3.75rem;
}

.sqrl-input.error {
  background: #fff8f7;
  border-color: #b3443d;
}

.sqrl-password-container {
  position: relative;
}

.sqrl-password-toggle {
  background: none;
  border: 0;
  border-radius: var(--sqrl-radius-sm);
  color: var(--sqrl-auth-muted-foreground);
  cursor: pointer;
  align-items: center;
  display: flex;
  height: 2.75rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: var(--sqrl-space-1);
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
}

.sqrl-password-toggle:hover {
  color: var(--sqrl-auth-primary-strong);
}

.sqrl-help-text,
.sqrl-error-text {
  font-size: 0.75rem;
  line-height: 1.45;
  margin-top: var(--sqrl-space-1);
}

.sqrl-help-text {
  color: var(--sqrl-auth-muted-foreground);
}

.sqrl-error-text {
  color: #9f2f2a;
}

.sqrl-alert {
  border: 1px solid;
  border-radius: var(--sqrl-radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: var(--sqrl-space-3);
  padding: var(--sqrl-space-2) var(--sqrl-space-3);
}

.sqrl-alert p {
  margin: 0;
}

.sqrl-alert__title {
  font-family: var(--sqrl-font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 var(--sqrl-space-1);
}

.sqrl-alert__list {
  margin: 0;
  padding-left: var(--sqrl-space-3);
}

.sqrl-alert-error {
  background: #fff1ef;
  border-color: #e5aaa5;
  color: #832923;
}

.sqrl-alert-success {
  background: #edf8f2;
  border-color: #a8d6c1;
  color: #245d49;
}

.sqrl-alert-info {
  background: rgba(234, 235, 196, 0.52);
  border-color: rgba(193, 154, 119, 0.52);
  color: var(--sqrl-home-foreground);
}

.password-recovery-panel {
  align-self: center;
}

.password-recovery-feature {
  margin-bottom: var(--sqrl-space-4);
}

.password-recovery-feature .registration-feature__icon svg {
  height: 1.5rem;
  width: 1.5rem;
}

.password-recovery-cooldown strong {
  display: inline;
  font-family: var(--sqrl-font-heading);
}

.password-recovery-panel .sqrl-help-text,
.password-recovery-panel .sqrl-error-text {
  margin-bottom: 0;
}

.finish-signup-panel {
  align-self: center;
}

.finish-signup-benefits {
  align-items: center;
  background: rgba(234, 235, 196, 0.52);
  border: 1px solid rgba(193, 154, 119, 0.28);
  border-radius: var(--sqrl-radius-lg);
  display: grid;
  gap: var(--sqrl-space-2);
  grid-template-columns: 3rem minmax(0, 1fr);
  margin-bottom: var(--sqrl-space-4);
  padding: var(--sqrl-space-3);
}

.finish-signup-benefits__icon {
  align-items: center;
  background: var(--sqrl-auth-primary-strong);
  border-radius: var(--sqrl-radius-md);
  color: #fff;
  display: flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.finish-signup-benefits__icon svg {
  height: 1.5rem;
  width: 1.5rem;
}

.finish-signup-benefits h2 {
  color: var(--sqrl-home-foreground);
  font-family: var(--sqrl-font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.finish-signup-benefits p {
  color: var(--sqrl-auth-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
}

.password-reset-panel {
  align-self: center;
}

.password-reset-guidance {
  align-items: center;
  background: rgba(234, 235, 196, 0.52);
  border: 1px solid rgba(193, 154, 119, 0.42);
  border-radius: var(--sqrl-radius-lg);
  display: grid;
  gap: var(--sqrl-space-2);
  grid-template-columns: 3rem minmax(0, 1fr);
  margin-bottom: var(--sqrl-space-4);
  padding: var(--sqrl-space-3);
}

.password-reset-guidance__icon {
  align-items: center;
  background: var(--sqrl-auth-primary-strong);
  border-radius: var(--sqrl-radius-md);
  color: #fff;
  display: flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.password-reset-guidance__icon svg {
  height: 1.5rem;
  width: 1.5rem;
}

.password-reset-guidance h2 {
  color: var(--sqrl-home-foreground);
  font-family: var(--sqrl-font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 var(--sqrl-space-1);
}

.password-reset-guidance p {
  color: var(--sqrl-auth-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 56rem) {
  .registration-shell {
    grid-template-columns: 1fr;
    max-width: 42rem;
  }

  .registration-story {
    gap: var(--sqrl-space-3);
    padding: var(--sqrl-space-5);
  }

  .registration-story__image-wrap,
  .registration-trust {
    display: none;
  }

  .registration-story h2 {
    font-size: 2rem;
  }

  .registration-story__copy > p:last-child {
    margin-top: var(--sqrl-space-2);
  }

  .registration-panel {
    padding: var(--sqrl-space-5);
  }
}

@media (min-width: 56.0625rem) {
  .sign-in-shell,
  .password-reset-shell {
    min-height: 42rem;
  }

  .password-recovery-shell {
    min-height: 42rem;
  }
}

@media (max-width: 36rem) {
  .auth-page--registration .sqrl-auth-header__inner {
    padding-inline: var(--sqrl-space-3);
  }

  .auth-page--registration .sqrl-auth-main {
    padding: 4.875rem var(--sqrl-space-2) var(--sqrl-space-2);
  }

  .registration-shell {
    border-radius: var(--sqrl-radius-lg);
    min-height: 0;
  }

  .registration-story {
    padding: var(--sqrl-space-4);
  }

  .registration-story h2 {
    font-size: 1.7rem;
  }

  .registration-story__copy > p:last-child {
    font-size: 0.95rem;
  }

  .registration-panel {
    padding: var(--sqrl-space-4);
  }

  .registration-panel__heading {
    font-size: 2rem;
  }
}
