textarea {
  width: 100%;
  box-sizing: border-box; /* чтобы padding и border входили в расчёт ширины */
  min-height: 140px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  font-size: 14px; /* чуть крупнее для удобства */
  transition: border-color 0.3s, box-shadow 0.3s;

  margin: 10px 0;
}

textarea:focus {
  border-color: #007bff; /* например, синий цвет при фокусе */

  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); /* внешняя тень при фокусе */
}

/* Стили для модальных окон */

.modal {
  display: none; /* По умолчанию скрыто */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Полупрозрачный фон */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Поверх всего */
}

/* Отображение модального окна */
.modal.active {
  display: flex; /* Появляется, если класс active добавлен */
}

/* Контент модального окна */
.modal-content {
  background: white;
  padding: 20px;

  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Тень */
}

.modal-content h3 {
  margin: 0 0 10px;
  color: #333;
}

.modal-content button {
  background: #2d72d9;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1em;
}

.modal-content button:hover {
  background: #1a56b3;
}

.hidden {
  display: none;
}
.styled-auth-modal {
  background: linear-gradient(145deg, #ffffff, #f0f2f5);
  padding: 30px 35px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow:
    4px 4px 12px rgba(0, 0, 0, 0.2),
    -4px -4px 12px rgba(255, 255, 255, 0.7);
  animation: fadeInUp 0.4s ease;
}

.styled-auth-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #133670;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.styled-auth-modal p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-button {
  display: inline-block;
  background: linear-gradient(145deg, #4d8bf0, #133670);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.auth-button:hover {
  background: linear-gradient(145deg, #3f7bd1, #133670);
  transform: translateY(-2px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 34px;
  font-weight: bold;
  color: #888;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: #133670;
  transform: scale(1.1);
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.enhanced-modal {
  max-width: 500px;
  padding: 30px;
  text-align: center;
}

.modal-icon {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 15px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.modal-message {
  font-size: 15px;
  color: #444;
  margin-bottom: 15px;
}

.modal-subtext {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-button {
  padding: 10px 16px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal-button.primary {
  background-color: #007bff;
  color: white;
}

.modal-button.primary:hover {
  background-color: #0056b3;
}

.modal-button.secondary {
  background-color: #f1f1f1;
  color: #333;
}

.modal-button.secondary:hover {
  background-color: #e0e0e0;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
