/* Self-contained styles for customer-facing pages (auth form etc.).
   Uses the Passing Paws warm brand. Do not depend on admin styles. */

:root {
  --c-green: #4a6d5a;
  --c-green-dark: #35503f;
  --c-green-light: #dde8e0;
  --c-gold: #c9a96e;
  --c-cream: #faf9f7;
  --c-cream-dark: #f2ede6;
  --c-dark: #1a2820;
  --c-text: #2d2d2d;
  --c-text-muted: #6b6b6b;
  --c-white: #ffffff;
  --c-border: #e5e1da;
  --c-danger: #b04a3a;
  --c-radius: 14px;
  --c-shadow: 0 4px 24px rgba(26, 40, 32, 0.06);
  --c-shadow-hover: 0 10px 36px rgba(26, 40, 32, 0.10);
}

* { box-sizing: border-box; }

body.customer-page {
  background: var(--c-cream-dark);
  min-height: 100vh;
  margin: 0;
  padding: 24px 16px 64px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.customer-page h1, body.customer-page h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--c-dark);
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
body.customer-page h1 { font-size: 26px; }
body.customer-page h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-green-dark);
}

body.customer-page a { color: var(--c-green-dark); }
body.customer-page .muted { color: var(--c-text-muted); }
body.customer-page .small { font-size: 13px; }

.customer-card {
  background: var(--c-white);
  border-radius: var(--c-radius);
  padding: 32px 24px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--c-shadow);
}
.customer-card header { text-align: center; margin-bottom: 24px; }

.brand-line {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: 16px;
}
.brand-line span { color: var(--c-gold); }

/* Saving Grace Veterinary Services is a separate licensed practice —
   visually distinct (navy, not green/gold) so families never confuse who's
   performing which service, even though both forms live in this CRM. */
.brand-line--sg { color: #2f3e52; }
.btn-primary--sg { background: #2f3e52; }
.btn-primary--sg:hover { background: #22303f; }

.lede { color: var(--c-text); font-size: 16px; line-height: 1.6; }

.block { margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--c-border); }
.block:first-of-type { border-top: none; padding-top: 0; }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--c-text-muted); font-family: 'DM Sans', sans-serif; font-size: 13px; }
.kv dd { margin: 0; }

.sign-form { display: flex; flex-direction: column; gap: 16px; }
.sign-form label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sign-form label.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  background: var(--c-cream);
  padding: 14px;
  border-radius: 10px;
  font-weight: 400;
}
.sign-form label.check input { margin-top: 3px; }

.sign-form input[type="text"], .sign-form input[type="tel"],
.sign-form input[type="email"], .sign-form select, .sign-form textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-white);
  width: 100%;
  box-sizing: border-box;
}
.sign-form textarea { resize: vertical; }
.sign-form input:focus, .sign-form select:focus, .sign-form textarea:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(74, 109, 90, 0.15);
}

/* Two-up field row; stacks on narrow screens. */
.sign-form .row { display: flex; gap: 16px; }
.sign-form .row label { flex: 1; }
@media (max-width: 520px) {
  .sign-form .row { flex-direction: column; gap: 16px; }
}

.btn-primary {
  background: var(--c-green);
  color: var(--c-white);
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--c-green-dark); }

.form-error {
  background: #fbe9e6;
  color: var(--c-danger);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}

.customer-footer { margin-top: 32px; text-align: center; font-size: 13px; color: var(--c-text-muted); }
