/* Сброс */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #1a1e30; /* фирменный фон */
  color: #c3c6cb; /* общий текст серый */
}

/* Центрирование блока */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Карточка формы */
.auth-box {
  background: #22263d;
  padding: 40px;
  border-radius: 15px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 20px rgba(21,62,255,0.3);
  text-align: center;
  animation: fadeIn 0.6s ease;
}

/* Заголовок бренда */
.brand {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Подзаголовок и заголовки форм */
.subtitle,
h2 {
  color: #c3c6cb;
  margin-bottom: 25px;
  font-size: 16px;
}

/* Flash сообщения */
.flashes {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.flashes li {
  background: #2a2f4a;
  color: #ff6666;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

/* Поля формы */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #c3c6cb;
}
.form-group input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #2a2f4a;
  color: #fff;
  transition: background 0.3s, box-shadow 0.3s;
}
.form-group input::placeholder {
  color: #727c95;
}
.form-group input:focus {
  outline: none;
  background: #333a5c;
  box-shadow: 0 0 8px rgba(21,62,255,0.6);
}

/* Кнопка */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #153eff, #2a4fff);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
  background: #1c46ff;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(21,62,255,0.7);
}
.btn-primary:active {
  transform: scale(0.95);
}

/* Заблокированная кнопка */
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #2a2f4a; /* приглушённый фон */
  color: #999; /* серый текст */
}

/* Ссылки */
.links {
  margin-top: 20px;
  font-size: 14px;
}
.links a {
  color: #c3c6cb;
  text-decoration: none;
}
.links a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Вкладки */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.tabs button {
  flex: 1;
  padding: 10px;
  background: #2a2f4a;
  border: none;
  border-radius: 8px;
  color: #c3c6cb;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.tabs button.active {
  background: #153eff;
  color: #fff;
  font-weight: bold;
}
.tabs button:hover {
  background: #333a5c;
  transform: scale(1.05);
}

/* Ошибки */
.error {
  color: #ff6666;
  margin: 10px 0;
  font-size: 14px;
}

/* Анимация */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Скрытые формы */
.hidden {
  display: none;
}

/* Адаптивность */
@media (max-width: 600px) {
  .auth-box {
    max-width: 90%;
    padding: 20px;
  }

  .brand {
    font-size: 22px;
  }

  .subtitle,
  h2 {
    font-size: 14px;
    margin-bottom: 20px;
  }

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

  .btn-primary {
    padding: 10px;
    font-size: 14px;
    border-radius: 15px;
  }

  .links {
    font-size: 12px;
    margin-top: 15px;
  }

  .tabs button {
    font-size: 12px;
    padding: 8px;
  }
}
