.auth-body {
  margin: 0;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

.auth-brand {
  display: flex;
  align-items: center;
  padding: 1.75rem clamp(1.5rem, 5vw, 4rem);
  background-color: var(--landing-dark-color);
}

.auth-brand__inner {
  width: 100%;
  max-width: 26rem;
  margin-left: auto;
}

.auth-brand__logo {
  display: block;
  margin-bottom: 2.5rem;
}

.auth-brand__logo img {
  height: 3rem;
  width: auto;
}

.auth-brand__title {
  margin-bottom: 2rem;
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: var(--font-semibold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.auth-brand__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  list-style: none;
}

.auth-brand__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--landing-dark-text);
  font-size: var(--normal-font-size);
  line-height: 1.5;
}

.auth-brand__item i {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: var(--landing-dark-accent);
  font-size: 1.25rem;
}

.auth-brand__rating {
  padding-top: 1.5rem;
  border-top: 1px solid var(--landing-dark-line);
  color: var(--landing-dark-muted);
  font-size: var(--small-font-size);
}

.auth-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem clamp(1.25rem, 5vw, 3.5rem) 2rem;
  background-color: var(--body-color);
}

.auth-panel {
  display: grid;
  gap: 1.75rem;
  width: 100%;
  max-width: 26rem;
  margin: auto;
}

.auth-panel__title {
  margin-bottom: var(--mb-0-5);
  font-size: 1.625rem;
  letter-spacing: -0.015em;
}

.auth-panel__subtitle {
  color: var(--text-color-light);
  font-size: var(--normal-font-size);
  text-wrap: pretty;
}

.auth-form {
  display: grid;
  gap: 1.15rem;
}

.auth-form .ash-form-row input[aria-invalid="true"] {
  border-color: var(--danger-color);
}

.auth-form .ash-form-row input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.auth-field__hint {
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

.auth-field__error {
  color: var(--danger-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.auth-form .button {
  width: 100%;
}

.auth-form .button--flex {
  justify-content: center;
}

.auth-stepper {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-bottom: 0.35rem;
  list-style: none;
}

.auth-stepper__item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
}

.auth-stepper__item::before {
  content: "";
  position: absolute;
  top: calc(0.9375rem - 1px);
  right: calc(50% + 1.3rem);
  width: calc(100% - 2.6rem);
  height: 2px;
  background-color: var(--border-color);
}

.auth-stepper__item:first-child::before {
  content: none;
}

.auth-stepper__item.is-current::before,
.auth-stepper__item.is-done::before {
  background-color: var(--primary-color);
}

.auth-stepper__dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  background-color: var(--body-color);
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semibold);
}

.auth-stepper__item.is-current .auth-stepper__dot {
  border-color: var(--primary-color);
  background-color: var(--primary-color-light);
  color: var(--primary-color);
}

.auth-stepper__item.is-done .auth-stepper__dot {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: #fff;
}

.auth-stepper__label {
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

.auth-stepper__item.is-current .auth-stepper__label {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.auth-step {
  display: grid;
  gap: 1.15rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
}

.auth-wizard__actions {
  display: flex;
  gap: 0.75rem;
}

.auth-wizard__actions .button {
  flex: 1;
  width: auto;
}

.auth-wizard__actions .auth-ghost-button {
  flex: 0 0 auto;
  width: auto;
  padding-inline: 1.1rem;
}

.auth-stepper[hidden],
.auth-step[hidden],
.auth-wizard__actions[hidden],
.auth-wizard__actions .button[hidden],
.auth-wizard__actions .auth-ghost-button[hidden] {
  display: none;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-light-color);
}

.auth-terms.is-invalid {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.auth-terms input {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  accent-color: var(--primary-color);
}

.auth-terms label {
  margin: 0;
  color: var(--text-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-regular);
  line-height: 1.55;
}

.auth-terms a {
  color: var(--primary-color);
  font-weight: var(--font-semibold);
}

.auth-terms a:hover {
  text-decoration: underline;
}

.auth-captcha {
  display: flex;
  justify-content: center;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-light-color);
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.5;
}

.auth-alert[hidden] {
  display: none;
}

.auth-alert i {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  font-size: 1.15rem;
}

.auth-alert--danger {
  border-color: rgba(220, 38, 38, 0.35);
  background-color: rgba(220, 38, 38, 0.08);
  color: var(--danger-color);
}

.auth-alert--success {
  border-color: rgba(5, 150, 105, 0.35);
  background-color: rgba(5, 150, 105, 0.08);
  color: var(--success-color);
}

.auth-alert--info {
  border-color: hsla(var(--hue), 70%, 55%, 0.35);
  background-color: var(--primary-color-light);
  color: var(--primary-color);
}

.auth-status {
  display: grid;
  justify-items: center;
  text-align: center;
}

.auth-status__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: var(--mb-1-5);
  border-radius: 999px;
  font-size: 2rem;
}

.auth-status__icon--success {
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--success-color);
}

.auth-status__icon--danger {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--danger-color);
}

.auth-status__message {
  margin-bottom: var(--mb-2);
  color: var(--text-color);
  font-size: var(--normal-font-size);
  text-wrap: pretty;
}

.auth-status .button {
  width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.auth-actions {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.auth-link {
  color: var(--primary-color);
  font-weight: var(--font-medium);
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-actions p {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.auth-ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: var(--control-height, 48px);
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: transparent;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition:
    border-color 0.2s,
    color 0.2s,
    background-color 0.2s;
}

.auth-ghost-button:hover:not(:disabled) {
  border-color: var(--primary-color);
  background-color: var(--primary-color-light);
  color: var(--primary-color);
}

.auth-ghost-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-legal {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
}

.auth-legal__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  list-style: none;
}

.auth-legal__links a {
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

.auth-legal__links a:hover {
  color: var(--primary-color);
}

.auth-legal__copy {
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

@media screen and (min-width: 968px) {
  .auth-shell {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .auth-brand {
    padding: 3rem clamp(2rem, 4vw, 4rem);
  }
}

@media screen and (max-width: 967px) {
  .auth-shell {
    grid-template-rows: auto 1fr;
  }

  .auth-brand {
    padding: 1.25rem clamp(1.25rem, 5vw, 2rem);
  }

  .auth-brand__inner {
    max-width: 34rem;
    margin-inline: auto;
  }

  .auth-brand__logo {
    margin-bottom: 0;
  }

  .auth-brand__logo img {
    height: 1.875rem;
    margin-inline: auto;
  }

  .auth-brand__title,
  .auth-brand__list,
  .auth-brand__rating {
    display: none;
  }
}
