:root {
  /* ===== ЕДИНЫЙ ЦВЕТОВОЙ СТИЛЬ — СВЕТЛАЯ МОЛОЧНАЯ ТЕМА ===== */
  --accent: #4ecdc4;
  --accent-hover: #3aa8a0;
  --accent-gradient: linear-gradient(135deg, #4ecdc4, #66d9cc);
  /* Фоны */
  --primary-bg: #faf9f6;
  --card-bg: rgba(250, 248, 242, 0.85);
  --sidebar-bg: #fdfcf9;
  /* Текст */
  --text-primary: #2d2d2d;
  --text-secondary: #5a5a5a;
  --text-muted: #999;
  /* Границы и тени */
  --border: rgba(0, 0, 0, 0.06);
  --hover-bg: rgba(78, 205, 196, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(78, 205, 196, 0.12);
  /* Радиусы */
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-lg: 20px;
  /* Анимации */
  --transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-slow: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== Авторизация — светлая молочная тема ===== */
body {
  background: var(--primary-bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.auth-container {
  max-width: 400px;
  margin: 60px auto;
  padding: 40px 30px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.auth-container .logo {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-container h2 {
  margin-bottom: 25px;
  font-size: 1.6rem;
  color: var(--text-primary);
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-container .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 100%;
}

.auth-container .form-group label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-container .form-group input {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  transition: var(--transition);
  font-size: 1rem;
  font-family: inherit;
}

.auth-container .form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.15);
  background: white;
}

.auth-container .btn {
  width: 100%;
  padding: 12px 0;
  margin-top: 10px;
  border: none;
  border-radius: var(--border-radius-sm);
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.auth-container .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.auth-container .form-footer {
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--text-muted);
  word-break: break-word;
}

.auth-container .form-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-container .form-footer a:hover {
  text-decoration: underline;
}

#message {
  position: relative;
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

#message.show {
  opacity: 1;
  transform: translateY(0);
}

.error-message {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-message {
  background: rgba(78, 205, 196, 0.12);
  color: var(--accent);
  border: 1px solid rgba(78, 205, 196, 0.3);
}

#message i {
  font-size: 1.1rem;
  min-width: 16px;
  text-align: center;
}

@media (max-width: 480px) {
  .auth-container {
    margin: 40px 15px;
    padding: 30px 20px;
  }

  .auth-container h2 {
    font-size: 1.5rem;
  }
}

html[data-theme="dark"] .auth-container {
  background: #141c26;
  border-color: #263144;
  color: #e6edf7;
}

html[data-theme="dark"] .auth-container h2,
html[data-theme="dark"] .auth-container .form-group label {
  color: #c3cedd;
}

html[data-theme="dark"] .auth-container .form-group input {
  background: #101826;
  border-color: #263144;
  color: #e6edf7;
}

html[data-theme="dark"] .auth-container .form-group input:focus {
  background: #0f1724;
  border-color: var(--accent);
}

html[data-theme="dark"] .auth-container .form-footer {
  color: #96a2b6;
}
