* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
}

/* ========== login page ========== */

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 380px;
}

h2 {
  margin-bottom: 24px;
  font-size: 22px;
  color: #1a1a1a;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus {
  border-color: #4f6ef7;
}

button {
  width: 100%;
  padding: 11px;
  background: #4f6ef7;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #3a57d4;
}

.error {
  color: #e53935;
  font-size: 13px;
  margin-bottom: 14px;
}

.welcome {
  color: #444;
  margin-bottom: 16px;
  font-size: 15px;
}

a {
  color: #4f6ef7;
  font-size: 14px;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========== report page ========== */

.report-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 16px;
  min-height: 100vh;
}

.report-card {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 480px;
  height: fit-content;
}

.report-card h2 {
  margin-bottom: 28px;
}

/* Группа полей */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  outline: none;
  cursor: pointer;
  transition: border 0.2s;
}

.form-group select:focus {
  border-color: #4f6ef7;
}

/* Радиокнопки — вид отчёта */
.radio-group {
  display: flex;
  gap: 24px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #4f6ef7;
  cursor: pointer;
  flex-shrink: 0;
}

/* Чекбоксы — список клиентов */
.checkbox-toolbar {
  margin-bottom: 8px;
}

.checkbox-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 4px;
}

.checkbox-list::-webkit-scrollbar {
  width: 6px;
}

.checkbox-list::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.checkbox-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.15s;
}

.checkbox-label:hover {
  background: #f5f7ff;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #4f6ef7;
  cursor: pointer;
  flex-shrink: 0;
}

/* "Выбрать всех" — чуть выделена */
.select-all-label {
  font-size: 13px;
  color: #555;
  padding: 0 2px 6px;
  border-bottom: 1px solid #eee;
  margin-bottom: 2px;
}

/* Результат */
#result {
  margin-top: 20px;
}

#result pre {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 14px;
  font-size: 13px;
  overflow-x: auto;
  line-height: 1.5;
}

/* ---------Анимация кнопки---------- */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.dots span {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  margin: 0 2px;
  animation: pulse 1.2s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

form input {
  margin-bottom: 12px;
}


.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}