/* v32: исправление окна входа и аккуратные формы */
.auth-modal-body {
  color: #172033;
}

.auth-modal-body .auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin: 0 0 16px;
  border-radius: 18px;
  background: #eef2ff;
  border: 1px solid rgba(37, 99, 235, .12);
}

.auth-modal-body .auth-switch button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 11px 14px;
  min-height: 44px;
  cursor: pointer;
  background: transparent;
  color: #334155;
  font: inherit;
  font-weight: 850;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.auth-modal-body .auth-switch button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .62);
}

.auth-modal-body .auth-switch button.active {
  background: #fff;
  color: #2457d6;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .15);
}

.auth-modal-body .auth-hint {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(148, 163, 184, .22);
  color: #475569;
  line-height: 1.45;
}

.auth-modal-body .auth-form {
  display: grid;
  gap: 13px;
}

.auth-modal-body .auth-form .field {
  display: grid;
  gap: 7px;
}

.auth-modal-body .auth-form label {
  color: #172033;
  font-weight: 850;
  font-size: 14px;
}

.auth-modal-body .auth-form small {
  color: #64748b;
  line-height: 1.35;
}

.auth-modal-body .auth-submit {
  margin-top: 4px;
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.auth-modal-body .form-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .auth-modal-body .auth-switch {
    grid-template-columns: 1fr;
  }

  .auth-modal-body .form-grid.two {
    grid-template-columns: 1fr;
  }
}
