/* Book-access flow — server-rendered form pages.
   Reuses the design tokens from styles.css (:root vars). No build step. */

.book-page {
  padding-top: 3rem;
  padding-bottom: 4rem;
  max-width: 680px;
}

.book-head {
  margin-bottom: 1.75rem;
}
.book-head h1 {
  margin: 0.25rem 0 0.75rem;
}

.book-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid #c0392b;
  border-radius: var(--radius);
  background: var(--bg);
  color: inherit;
}

.book-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 480px;
}

.book-form label {
  font-weight: 600;
}

.book-form input[type="text"],
.book-form input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: inherit;
  font: inherit;
}

.book-form button {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Repo checkbox list */
.book-repos {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}
.book-repo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.6rem;
  align-items: start;
  padding: 0.5rem 0;
}
.book-repo input[type="checkbox"] {
  margin-top: 0.2rem;
}
.book-repo-label {
  font-weight: 600;
}
.book-repo .small {
  grid-column: 2;
}

/* Consent / newsletter checkboxes on the register form */
.book-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  font-weight: 400;
}
.book-check input[type="checkbox"] {
  margin-top: 0.25rem;
}
