:root {
  --primary-color: #4caf50;
  --primary-dark: #2e7d32;
  --primary-light: #81c784;
  --error-color: #ff4757;
  --text-primary: #212121;
  --text-secondary: #757575;
  --bg-light: #f8f9fa;
  --bg-dark: #121212;
  --card-bg-light: #ffffff;
  --card-bg-dark: #252525;
  --border-color-light: #e0e0e0;
  --border-color-dark: #444;
  --transition-speed: 0.3s;
}

/* Основные стили */
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-light), #4fdf5b);
  transition: all var(--transition-speed) ease;
}

body[data-theme="dark"] {
  background: linear-gradient(135deg, var(--bg-dark), #1b5e20);
  color: #f5f5f5;
}

[data-theme="dark"] .form-group label {
  color: #f5f5f5;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.auth-card {
  background-color: var(--card-bg-light);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeInUp 0.6s ease;
  border: 1px solid var(--border-color-light);
  transition: all var(--transition-speed) ease;
}

body[data-theme="dark"] .auth-card {
  background-color: var(--card-bg-dark);
  border-color: var(--border-color-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-logo {
  margin-bottom: 30px;
}

.auth-logo i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  animation: bounce 2s infinite;
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-primary);
}
body[data-theme="dark"] .auth-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff;
}

.auth-subtitle {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1rem;
}

.auth-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.auth-form .form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color-light);
  background-color: transparent;
  transition: all var(--transition-speed) ease;
  font-size: 1rem;
}

body[data-theme="dark"] .auth-form .form-control {
  border-color: var(--border-color-dark);
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

body[data-theme="dark"] .auth-form .form-control::placeholder {
  color: #fff;
}

.auth-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  outline: none;
}

.btn-auth {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
  background-color: var(--primary-color);
  border: none;
  color: white;
  margin-top: 10px;
}

.btn-auth:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.auth-footer {
  margin-top: 25px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.auth-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

.auth-link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.notification {
  display: none;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

.notification.error {
  background-color: rgba(255, 71, 87, 0.1);
  border-left: 4px solid var(--error-color);
  color: var(--error-color);
}

.btn-theme-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-theme-switch:hover {
  transform: scale(1.1);
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Адаптивность */
@media (max-width: 576px) {
  .auth-card {
    padding: 30px 20px;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-logo i {
    font-size: 3rem;
  }
}


/* Language Switcher */
.language-switcher {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.language-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.language-btn:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.language-dropdown {
  display: none;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-width: 120px;
}

.language-dropdown.show {
  display: block;
}

.language-option {
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-option:hover {
  background: rgba(76, 175, 80, 0.1);
}

.language-option.active {
  background: var(--primary-color);
  color: white;
}

[data-theme="dark"] .language-dropdown {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}