/* === СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (style_home.css) === */


/* === ОСНОВНЫЕ СТИЛИ КОНТЕЙНЕРА === */
.home-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: 100vh;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === ЗАГОЛОВОК И ОПИСАНИЕ === */
.home-container h1 {
  font-size: 2.2em;
  margin-bottom: 15px;
  text-align: center;
  color: #2c3e50;
  font-weight: 600;
}

.home-container p {
  text-align: center;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
  font-size: 1.1em;
}

/* === БЛОК ДЕЙСТВИЙ (ФОРМЫ СОЗДАНИЯ И ПРИСОЕДИНЕНИЯ) === */
.actions {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 500px;
  width: 100%;
  margin: 30px auto;
}

.actions h3 {
  text-align: center;
  margin: 0 0 15px 0;
  font-weight: 500;
  font-size: 1.3em;
  color: #2c3e50;
}

/* === ПОЛЯ ВВОДА === */
.input-large {
  width: 100%;
  padding: 14px 12px;
  font-size: 1.1em;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease;
}

.input-large:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* === КНОПКИ === */
.btn-large {
  width: 100%;
  padding: 16px 12px;
  font-size: 1.2em;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: #27ae60;
  color: white;
}

.btn-primary:hover {
  background: #219a52;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.2);
}

.btn-secondary {
  background: #3498db;
  color: white;
}

.btn-secondary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

/* === ФУТЕР === */
.home-footer {
  margin-top: 40px;
  color: #777;
  font-size: 0.9em;
  text-align: center;
  line-height: 1.5;
  width: 100%;
}

.home-footer p {
  margin: 8px 0;
}

.home-footer a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.home-footer a:hover {
  text-decoration: underline;
  color: #2980b9;
}

/* === АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ === */
@media (max-width: 768px) {
  .home-container {
    padding: 20px 15px;
    min-height: auto;
  }

  .home-container h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .home-container p {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .actions {
    gap: 15px;
    max-width: 90%;
  }

  .actions h3 {
    font-size: 1.2em;
    margin: 0 0 10px 0;
  }

  .input-large,
  .btn-large {
    font-size: 1em;
    padding: 12px 10px;
  }

  .home-footer {
    margin-top: 30px;
    font-size: 0.85em;
  }
}

@media (max-width: 480px) {
  .home-container {
    padding: 15px 10px;
  }

  .home-container h1 {
    font-size: 1.6em;
  }

  .actions {
    gap: 12px;
  }

  .input-large,
  .btn-large {
    font-size: 0.95em;
    padding: 10px 8px;
  }

  .home-footer p {
    margin: 5px 0;
    font-size: 0.8em;
  }
}

@media (max-width: 360px) {
  .home-container {
    padding: 10px 5px;
  }

  .home-container h1 {
    font-size: 1.4em;
  }

  .actions {
    gap: 10px;
  }

  .input-large,
  .btn-large {
    font-size: 0.9em;
    padding: 8px 6px;
  }

  .home-footer {
    font-size: 0.75em;
    line-height: 1.4;
  }
}

/* === ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ === */
/* Плавное появление элементов при загрузке */
.home-container * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.home-container *:nth-child(1) { animation-delay: 0.1s; }
.home-container *:nth-child(2) { animation-delay: 0.2s; }
.home-container *:nth-child(3) { animation-delay: 0.3s; }
.home-container *:nth-child(4) { animation-delay: 0.4s; }
.home-container *:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Эффект нажатия для кнопок */
.btn-large:active {
  transform: translateY(1px);
}
.error-message {
  background-color: #fee;
  border: 1px solid #f66;
  color: #d33;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.error-message strong {
  font-weight: bold;
}