.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 18px;
  padding: 5px;
  background: rgba(154, 111, 95, 0.08);
  border: 1px solid rgba(230, 200, 168, 0.74);
  border-radius: 999px;
}

.auth-mode-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.auth-mode-link:hover {
  color: var(--primary-dark);
}

.auth-mode-link.is-active {
  background: var(--surface-strong);
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(52, 41, 30, 0.08);
}

.auth-helper-panel {
  display: grid;
  gap: 4px;
  margin: -8px 0 18px;
  padding: 12px 14px;
  background: rgba(255, 223, 209, 0.5);
  border: 1px solid rgba(200, 173, 151, 0.55);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: left;
}

.auth-helper-panel strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.96rem;
  font-weight: 850;
}

.auth-helper-panel span {
  font-size: 0.9rem;
  line-height: 1.42;
}

.auth-recovery-actions {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.auth-recovery-actions .button {
  min-height: 48px;
}

.auth-support-link {
  justify-self: center;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.auth-support-link:hover,
.auth-form-row a:hover,
.auth-signup a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .auth-mode-switch {
    margin-top: 12px;
  }

  .auth-mode-link {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.92rem;
  }

  .auth-helper-panel {
    padding: 11px 12px;
  }
}
