.auth-layout {
  display: grid;
  grid-template-columns: var(--layout-auth-columns);
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-hero {
  display: var(--layout-auth-hero);
  flex-direction: column;
  padding: clamp(var(--space-10), 5vw, var(--space-16));
  background: var(--gradient-bg);
}

.auth-hero__copy {
  max-width: 34rem;
  margin-block: auto;
}

.auth-hero__heading {
  margin-top: var(--space-4);
  font-size: clamp(var(--text-2xl), 3.6vw, var(--text-3xl));
}

.auth-hero__text {
  max-width: 27.5rem;
  margin-top: var(--space-5);
  color: var(--color-ink-secondary);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.auth-main {
  display: flex;
  align-items: var(--layout-auth-align);
  justify-content: center;
  padding:
    calc(clamp(var(--space-6), 5vw, var(--space-12)) + var(--safe-top))
    var(--gutter-right)
    calc(clamp(var(--space-10), 6vw, var(--space-12)) + var(--safe-bottom))
    var(--gutter-left);
  background: var(--layout-auth-main-bg);
}

.auth-card {
  width: 100%;
  max-width: calc(var(--form-width) + 2 * var(--space-10));
  padding: clamp(var(--space-5), 6vw, var(--space-10));
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.auth-card__brand {
  display: var(--layout-auth-card-brand);
  justify-content: center;
  margin-bottom: var(--space-6);
}

.auth-card a,
.link-button {
  position: relative;
}

.auth-card a::after,
.link-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, var(--touch-target));
  height: max(100%, var(--touch-target));
  transform: translate(-50%, -50%);
}

.auth-switch {
  margin-bottom: var(--space-6);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  text-align: right;
}

.auth-title {
  margin-top: var(--space-3);
  font-size: clamp(var(--text-xl), 7vw, var(--text-2xl));
}

.auth-lead {
  margin: var(--space-3) 0 var(--space-8);
  color: var(--color-ink-muted);
  line-height: var(--leading-relaxed);
  overflow-wrap: anywhere;
}

.auth-lead strong {
  color: var(--color-ink);
}

.auth-footer {
  margin-top: var(--space-6);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  text-align: center;
}

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

.auth-centered {
  text-align: center;
}

.auth-icon {
  display: inline-grid;
  place-items: center;
  width: var(--icon-tile);
  height: var(--icon-tile);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-sage-light);
  color: var(--color-sage-600);
}

.auth-legal {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
