.auth-page {
  container: auth-page / inline-size;
}

.auth-page .auth-right {
  background: #fff;
}

.auth-page .flash {
  width: 100%;
}

.register-validation-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
}

.register-validation-summary > i {
  margin-top: 0.15rem;
}

.register-validation-summary strong {
  display: block;
  font-weight: 700;
}

.register-validation-summary ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.register-validation-summary li + li {
  margin-top: 0.25rem;
}

.register-validation-summary a {
  color: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-right-register [aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.12);
}

.auth-right-register .form-group.has-validation-error .form-label {
  color: #8f1d16;
}

.register-consent-group.has-validation-error {
  border: 1px solid rgba(180, 35, 24, 0.42);
  background: rgba(180, 35, 24, 0.06);
}

.auth-register-submit.has-validation-error {
  outline: 3px solid rgba(214, 60, 77, 0.24);
  outline-offset: 3px;
}

.register-consent-group {
  padding: 0.75rem;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.register-consent-label {
  min-height: 44px;
  align-items: flex-start;
}

.register-consent-checkbox {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--primary-mid);
}

.register-consent-copy strong {
  color: var(--primary-dark);
}

.auth-page-recovery .auth-left-content {
  max-width: 520px;
}

.auth-page-register .auth-left-content > p {
  max-width: 390px;
  margin: 0 auto 1.35rem;
  color: rgba(255, 255, 255, 0.9);
}

.auth-register-hero-cta {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--accent-yellow);
  border-radius: 10px;
  background: var(--accent-yellow);
  color: var(--primary-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-register-hero-cta:hover {
  background: #ffc247;
  box-shadow: 0 15px 34px rgba(15, 23, 42, 0.28);
  transform: translateY(-2px);
}

.auth-register-hero-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.auth-security-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--accent-yellow);
  font-size: 2rem;
  backdrop-filter: blur(8px);
}

.auth-recovery-action {
  margin-top: 1rem;
  text-align: center;
}

.auth-recovery-action a {
  color: var(--primary-mid);
  font-weight: 700;
}

.auth-page .form-hint {
  color: var(--text-muted);
  font-weight: 400;
}

@container auth-page (max-width: 760px) {
  .auth-page-recovery .auth-right {
    width: 100%;
  }
}
