/* Public-facing chrome (header, sign-in, password reset).
   Uses the design tokens defined in bh_tokens.css and pairs with admin.css
   for the admin shell and recipient.css for the recipient flow. */

.app-header {
  background: var(--bh-card);
  border-bottom: 1px solid var(--bh-hairline);
  padding: 0.75rem 1.5rem;
}
.app-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.app-header .brand img { display: block; }
.app-header nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.app-header nav .user-email { color: var(--bh-muted); font-size: 0.9rem; }
.app-header nav .user-email strong { color: var(--bh-ink); }
.app-header nav a { color: var(--bh-primary); }
.app-header nav a:hover { color: var(--bh-primary-dark); }

form.button_to { display: inline; margin: 0; }

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: var(--bh-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--bh-primary); color: #fff; }
.btn-primary:hover { background: var(--bh-primary-dark); color: #fff; }
.btn-secondary { background: var(--bh-card); color: var(--bh-ink); border-color: var(--bh-hairline); }
.btn-secondary:hover { border-color: var(--bh-primary); color: var(--bh-primary); }

.flash {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border-radius: var(--bh-radius-sm);
  border: 1px solid transparent;
}
.flash--notice { background: var(--bh-positive-soft); color: var(--bh-positive-dark); border-color: rgba(47, 143, 92, 0.2); }
.flash--alert { background: var(--bh-danger-soft); color: var(--bh-danger); border-color: rgba(178, 74, 59, 0.2); }

/* Sign in / password reset */
.auth-shell {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bh-card);
  border: 1px solid var(--bh-hairline);
  border-radius: var(--bh-radius-md);
  padding: 2rem;
  box-shadow: var(--bh-shadow-card);
}
.auth-card h2 {
  font-family: var(--bh-font-serif);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-links { margin-top: 1.25rem; text-align: center; font-size: 0.9rem; }
.auth-links a { display: inline-block; margin: 0 0.5rem; color: var(--bh-primary); }
.auth-links a:hover { color: var(--bh-primary-dark); text-decoration: underline; }

.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--bh-ink);
}
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="text"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--bh-ink);
  background: #fff;
  border: 1px solid var(--bh-hairline);
  border-radius: var(--bh-radius-sm);
}
.form-row input:focus {
  outline: 0;
  border-color: var(--bh-accent);
  box-shadow: 0 0 0 3px rgba(143, 195, 74, 0.18);
}
.form-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
.field_with_errors { display: contents; }
.field_with_errors input { border-color: var(--bh-danger); }
