:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --success: #4cc9f0;
  --danger: #f72585;
  --light: #f8f9fa;
  --dark: #212529;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  background-color: #f0f2f5;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.auth-container {
  max-width: 500px;
  width: 100%;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

p {
  text-align: center;
  color: #495057;
  margin-bottom: 25px;
}

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

input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus {
  border-color: var(--accent);
  outline: none;
}

button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: var(--secondary);
}

.toggle-form {
  text-align: center;
  margin-top: 15px;
  color: #495057;
}

.toggle-form a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.toggle-form a:hover {
  text-decoration: underline;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 10px 0;
  text-align: center;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .auth-container {
    padding: 20px;
  }

  body {
    padding: 10px;
    align-items: flex-start;
  }
}
/* Стили для демо-секции */
.demo-section {
  margin-top: 25px;
  text-align: center;
}

.demo-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
  margin: 20px 0;
}

.demo-text {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.demo-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.demo-btn:hover {
  background: linear-gradient(135deg, #218838, #1ea085);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}
