.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 350px;
  width: 320px;
  margin: 50px auto;
}

/* Django по умолчанию рендерит форму в <p> */
.auth-form p {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Скрываем label (твой старый дизайн не использовал их) */
.auth-form label {
  display: none;
}

/* Приводим input/textarea/select к общему виду */
.auth-form input,
.auth-form textarea,
.auth-form select,
.auth-form button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: all 0.2s;
  box-sizing: border-box;
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
  border-color: #d32f2f;
  outline: none;
}

.auth-form button {
  background: #d32f2f;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.auth-form button:hover {
  background: #b71c1c;
}

/* Ошибки */
.error-message {
  width: 100%;
  padding: 8px 12px;
  color: #d32f2f;
  background: #ffe6e6;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}

/* Заголовок */
.form-title {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

/* Переключатель */
.auth-switch {
  margin-top: 5px;
  color: #d32f2f;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}
