.auth-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) 1.5rem 5rem;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(280px, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}

.auth-shell.auth-shell--single {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.site-header--minimal .site-nav {
  display: none;
}

.auth-card,
.auth-aside {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-card {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
}

.auth-aside {
  padding: clamp(1.25rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.auth-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 65%, transparent);
}

.auth-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  line-height: 1.2;
}

.auth-subtitle {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
}

.auth-form {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.95rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.auth-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.6rem;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.auth-checkbox input {
  margin-top: 0.18rem;
}

.auth-checkbox a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.auth-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.auth-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

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

.auth-links {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.status-message {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  line-height: 1.5;
}

.status-message.visible {
  display: block;
}

.status-message.error {
  background: color-mix(in srgb, #f87171 15%, transparent);
  border-color: color-mix(in srgb, #ef4444 35%, transparent);
  color: #b91c1c;
}

.status-message.success {
  background: color-mix(in srgb, #34d399 15%, transparent);
  border-color: color-mix(in srgb, #10b981 35%, transparent);
  color: #166534;
}

.status-message.info {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text);
}

.auth-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.6rem;
}

.auth-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-card hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

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

  .auth-aside {
    order: -1;
  }
}

@media (max-width: 640px) {
  .auth-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    position: static;
  }
}
