* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../../assets/img/main-bg.jpg') center/cover no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 400px;
}

.auth-form-section {
  width: 100%;
  background: rgba(155, 155, 155, 0.65);
  padding: 30px;
  border-radius: 8px;
}

.form-title {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
  font-size: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-top: 5px;
}

.form-group input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #ddd;
}

.submit-btn {
  background: #0066cc;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  margin-top: 5px;
}

.logout-btn {
  background: #FD484A;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  margin-top: 15px;
}

.submit-btn:hover {
  background: #0055aa;
}

.logout-btn:hover {
  background: #0055aa;
}

/* Адаптивность */
@media (max-width: 480px) {
  .auth-form-section {
    padding: 25px 20px;
  }
  
  .form-title {
    margin-bottom: 20px;
    font-size: 1.3rem;
  }
  
  .form-group input,
  .submit-btn {
    padding: 12px;
  }
  .logout-btn {
    padding: 12px;
  }
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  padding: 15px 20px;
  border-radius: 6px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out, fadeOut 0.5s ease-in-out 2.5s forwards;
}

.toast.error {
  background-color: #ff4444;
}

.toast.success {
  background-color: #00C851;
}

@keyframes fadeIn {
  from { opacity: 0; top: 0; }
  to { opacity: 1; top: 20px; }
}

@keyframes fadeOut {
  from { opacity: 1; top: 20px; }
  to { opacity: 0; top: 0; }
}

@media (max-width: 480px) {
  .toast {
    max-width: 90%;
    padding: 12px 15px;
    font-size: 0.9rem;
  }
}