/* Кнопки и ссылки-действия */
.primary-button {
  background: #183c37; color: white; border: 0;
  border-radius: 8px; padding: 13px 22px;
  cursor: pointer; font-weight: 650; margin-top: 1rem;
}
.primary-button:hover { background: #27564b; }

.secondary-button {
  border: 1px solid #bac8c0; border-radius: .5rem;
  padding: .8rem 1rem; cursor: pointer;
}
.text-link {
  display: block; margin-top: 1rem;
  text-decoration: underline; text-underline-offset: .2rem;
}
.home-button {
  display: inline-flex; align-items: center; justify-content: center;
  background: #183c37; color: white;
  border-radius: 8px; padding: 13px 22px;
  text-decoration: none; font-size: .9rem; font-weight: 650;
  transition: background .15s;
}
.home-button:hover { background: #27564b; }
.home-link { font-size: .88rem; text-decoration: underline; text-underline-offset: 5px; }

/* Auth */
.auth-panel { max-width: 430px; margin: 2rem auto; }
.auth-form { display: flex; flex-direction: column; gap: .65rem; }
.auth-form label { margin-top: .7rem; font-weight: 600; }
.auth-form input:not([type=submit]) {
  border: 1px solid #bac8c0; border-radius: .5rem;
  background: white; padding: .8rem; width: 100%; box-sizing: border-box;
}
.auth-form small { color: #53695e; }

/* Общие подсказки / пустые состояния */
.form-hint, .empty-state { color: #53695e; margin: 1rem 0; }

/* Базовая сетка для checkbox-ов */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .8rem;
}
.checkbox-grid label { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.checkbox-grid input { accent-color: #1b6148; width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

/* Заголовки страниц и панели действий */
.page-heading, .actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0;
}
.page-heading h1 { margin: 0; }
.page-heading .primary-button,
.actions .primary-button,
.actions .text-link { margin: 0; }

/* Полноэкранный паспортный грид (переиспользуется в authoring) */
.passport-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.passport-field { min-width: 0; }
.passport-field-wide { grid-column: 1 / -1; }
.passport-field > label { display: block; margin-bottom: .5rem; }

@media (max-width: 600px) {
  .passport-fields { grid-template-columns: minmax(0, 1fr); }
}
