.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-5);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.auth-panel {
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.auth-panel-hero {
  display: grid;
  align-content: space-between;
  min-height: 32rem;
}

.auth-panel-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
  font-family: var(--font-display);
}

.auth-copy {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.auth-copy.compact {
  max-width: none;
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}

.feature-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.feature-ribbon span {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.hero-metrics {
  display: grid;
  gap: 1rem;
}

.hero-metrics div {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics span {
  color: var(--muted);
  margin-top: 0.25rem;
}

.auth-panel-forms {
  align-self: center;
}

.auth-inline-panel {
  padding: var(--space-5);
}

.auth-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.brand-mark {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #08121f;
  font-weight: 800;
}

.tabs {
  display: inline-flex;
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 1.5rem;
}

.tab-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0.7rem 1rem;
}

.tab-button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

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

.auth-form label,
.stack-form label {
  display: grid;
  gap: 0.45rem;
}

.auth-form input,
.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.95rem 1rem;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-panel-hero {
    min-height: auto;
  }
}
