/* Notification signup form */
.notify-signup {
  border-top: 1px solid #e8e3dc;
  padding: 2rem 0;
  margin-top: 2rem;
  text-align: center;
}

.notify-signup-title {
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.notify-signup-desc {
  font-size: 0.8rem;
  color: #a89f96;
  margin-bottom: 1.5rem;
}

.notify-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 300px;
  margin: 0 auto;
}

.notify-input {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #d4cec6;
  background: #fff;
  color: #1c1917;
  text-align: center;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.notify-input:focus {
  border-color: #a89f96;
}

.notify-code-input {
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  max-width: 180px;
}

.notify-book-picks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  width: 100%;
}

.notify-book-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.notify-book-label input {
  width: 0.9rem;
  height: 0.9rem;
}

.notify-btn {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
  border: 1px solid #1c1917;
  background: #1c1917;
  color: #f8f5f0;
  cursor: pointer;
  transition: opacity 0.15s;
}

.notify-btn:hover {
  opacity: 0.85;
}

.notify-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notify-error {
  color: #b44;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.notify-desc-sm {
  font-size: 0.8rem;
  color: #a89f96;
  margin-bottom: 1rem;
}

.notify-done-msg {
  font-size: 0.9rem;
  color: #4a8;
}

.notify-manage-existing {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #a89f96;
  text-decoration: none;
}

.notify-manage-existing:hover {
  text-decoration: underline;
}

/* Theme awareness */
.theme-dark .notify-signup {
  border-top-color: #333;
}

.theme-dark .notify-input {
  background: #2a2520;
  border-color: #444;
  color: #e8e3dc;
}

.theme-dark .notify-btn {
  border-color: #e8e3dc;
  background: #e8e3dc;
  color: #1c1917;
}

.theme-dark .notify-manage-existing {
  color: #8a857e;
}

.theme-sepia .notify-input {
  background: #f5f0e8;
  border-color: #d4cec6;
}

/* Library page dark-mode overrides */
.library-notify .notify-signup {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #e0ddd8;
}

.library-notify .notify-signup-title {
  color: #e8e4de;
}

.library-notify .notify-signup-desc {
  color: #8a857e;
}

.library-notify .notify-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e0ddd8;
  font-family: var(--font-ui);
}

.library-notify .notify-input::placeholder {
  color: #6a6560;
}

.library-notify .notify-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.library-notify .notify-code-input {
  font-family: var(--font-ui);
}

.library-notify .notify-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0ddd8;
  font-family: var(--font-ui);
}

.library-notify .notify-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.library-notify .notify-error {
  color: #e07070;
}

.library-notify .notify-desc-sm {
  color: #8a857e;
}

.library-notify .notify-done-msg {
  color: #7cc4a0;
}

.library-notify .notify-manage-existing {
  color: #8a857e;
}

.library-notify .notify-book-label {
  color: #b5b0a8;
}
