/* Стили для форм авторизации и регистрации */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #f0f5fa, #f7faff);
  position: relative;
  z-index: 101;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  padding: 30px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-header {
  position: relative;
  margin-bottom: 24px;
}

.auth-header h2 {
  text-align: center;
  color: #334155;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 10px;
  margin-bottom: 0;
}

.back-to-chat-button {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
  width: fit-content;
}

.back-to-chat-button:hover {
  color: #3498db;
  background-color: #f0f9ff;
  transform: translateX(-4px);
  text-decoration: none;
}

.back-to-chat-button svg {
  transition: transform 0.2s ease;
}

.back-to-chat-button:hover svg {
  transform: translateX(-2px);
}

.auth-error {
  background-color: #ffebee;
  color: #ef4444;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ef4444;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}

.form-group input {
  width: 100%;
  padding: 12px;
  font-size: 0.9375rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
  background-color: #f8fafc;
}

.form-group input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  background-color: white;
}

.form-group input::placeholder {
  color: #94a3b8;
}

.auth-button {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
}

.auth-button:active {
  transform: translateY(0);
}

.auth-button:disabled {
  background: linear-gradient(135deg, #a0aec0, #94a3b8);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-links {
  margin-top: 24px;
  text-align: center;
}

.auth-links p {
  margin-bottom: 16px;
  font-size: 0.9375rem;
  color: #4b5563;
}

.auth-links a {
  color: #3498db;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.auth-links a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.demo-info {
  display: block;
  margin-top: 16px;
  padding: 12px;
  background-color: #f0f9ff;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #0369a1;
  text-align: center;
  border: 1px dashed #bae6fd;
}

/* Адаптивность */
@media (max-width: 480px) {
  .auth-card {
    padding: 24px;
  }

  .auth-header h2 {
    font-size: 1.25rem;
  }

  .form-group input {
    font-size: 0.875rem;
    padding: 10px;
  }

  .auth-button {
    padding: 12px;
    font-size: 0.9375rem;
  }

  .auth-links p, .demo-info {
    font-size: 0.8125rem;
  }
}