/* Public pages (privacy, terms, data deletion, contact) and the sign-in page. */
:root {
  /* Colours taken from the HP Wellness Clinic logo. */
  --navy: #355291;
  --navy-2: #263d70;
  --navy-text: #4a578f;
  --sky: #38b6ff;
  --sky-ink: #0b6fae;
  --pink: #ffa4b4;
  --pink-soft: #fff0f3;
  --pink-ink: #d4567c;
  --sky-soft: #e8f6ff;
  --ink: #1c2747;
  --ink-2: #46527a;
  --muted: #6d7794;
  --line: #e1e6f1;
  --paper: #fbfcff;
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --script: 'Dancing Script', 'Brush Script MT', cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; }
a { color: var(--sky-ink); }
a:hover { color: var(--navy); }
.ph { background: #fff1c7; color: #7a5600; border-radius: 4px; padding: 0 4px; font-size: .95em; }

/* ---- document pages ---- */
.site { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1100px 480px at 0% -10%, var(--pink-soft), transparent 60%), radial-gradient(900px 420px at 100% 0%, var(--sky-soft), transparent 60%), var(--paper); }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; max-width: 980px; width: 100%; margin: 0 auto; flex-wrap: wrap; }
.site-brand { display: block; line-height: 0; }
.site-brand img { height: 60px; width: auto; }
.lang { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { text-decoration: none; color: var(--ink-2); font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.lang a[aria-current] { background: var(--navy); color: #fff; }
.doc { flex: none; width: 100%; max-width: 780px; margin: 8px auto 40px; padding: 36px 40px 44px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 40px -24px rgba(53, 82, 145, .35); }
.doc h1 { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 32px; line-height: 1.25; margin: 0 0 4px; letter-spacing: -.01em; }
.doc h2 { font-size: 17px; margin: 30px 0 8px; color: var(--navy-2); }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.doc .lead { font-size: 17px; color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.contact-list { list-style: none; padding: 0 !important; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.hours { border-collapse: collapse; width: 100%; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--ink-2); }
.btn-wa { display: inline-flex; align-items: center; gap: 8px; background: #25a35a; color: #fff !important; text-decoration: none; padding: 11px 20px; border-radius: 999px; font-weight: 600; }
.btn-wa:hover { background: #1e8c4d; }
.site-foot { margin-top: auto; text-align: center; padding: 22px 16px 30px; color: var(--muted); font-size: 13px; }
.site-foot nav, .auth-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 6px; }
.site-foot a, .auth-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover, .auth-foot a:hover { color: var(--navy); text-decoration: underline; }
.site-foot a[aria-current] { color: var(--navy); font-weight: 600; }

/* ---- sign-in page ---- */
.auth { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, 1fr); overflow: hidden;
  background: radial-gradient(900px 600px at -10% 0%, #ffe3ea 0%, transparent 60%), radial-gradient(800px 600px at 110% 100%, #d9f0ff 0%, transparent 60%), linear-gradient(180deg, #ffffff, #f7f9ff); }
.auth-ribbon { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; pointer-events: none; }
.auth-hero { position: relative; z-index: 1; padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.auth-logo { width: min(460px, 100%); height: auto; display: block; margin-left: -10px; }
.auth-hero h1 { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.3; margin: 0; max-width: 20ch; letter-spacing: -.01em; }
.auth-hero h1 em { font-family: var(--script); font-style: normal; font-weight: 500; color: var(--pink-ink, #d4567c); font-size: 1.2em; }
.auth-hero p { margin: 0; font-size: 16.5px; color: var(--ink-2); max-width: 40ch; }
.auth-hero .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-hero .pills span { background: rgba(255,255,255,.8); border: 1px solid var(--line); color: var(--navy-text); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; }
.auth-hero .pills span:nth-child(odd)::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); margin-right: 7px; vertical-align: 1px; }
.auth-hero .pills span:nth-child(even)::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); margin-right: 7px; vertical-align: 1px; }
.auth-panel { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 28px 24px; }
.auth-card { width: 100%; max-width: 410px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px 34px 28px; box-shadow: 0 30px 60px -30px rgba(53, 82, 145, .35), 0 2px 6px rgba(53, 82, 145, .05); position: relative; overflow: hidden; }
.auth-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--navy), var(--sky) 55%, var(--pink)); }
.auth-card .mark { display: none; }
.auth-card h2 { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 26px; margin: 0 0 6px; letter-spacing: -.01em; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; }
.auth-card label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 16px; }
.field { display: block; position: relative; margin-top: 6px; }
.field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field input { width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 46px; font: inherit; font-size: 16px; color: var(--ink); background: #fbfcff; transition: border-color .15s, box-shadow .15s, background .15s; }
.field input:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(56, 182, 255, .2); }
.field input:focus ~ svg, .field:focus-within svg { stroke: var(--navy); }
.field .reveal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--sky-ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.field .reveal:hover { background: var(--sky-soft); }
.auth-card .error { color: #b3261e; font-size: 14px; min-height: 20px; margin: -4px 0 10px; }
.auth-card button[type=submit] { width: 100%; height: 50px; border: none; border-radius: 14px; font: inherit; font-weight: 600; font-size: 16px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #4064ad, var(--navy) 55%, var(--navy-2)); box-shadow: 0 12px 24px -12px rgba(53, 82, 145, .8); transition: transform .1s, box-shadow .15s; }
.auth-card button[type=submit]:hover { box-shadow: 0 16px 28px -12px rgba(53, 82, 145, .9); }
.auth-card button[type=submit]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(56, 182, 255, .35); }
.auth-card button[type=submit]:active { transform: translateY(1px); }
.auth-card button[disabled] { opacity: .7; cursor: default; }
.auth-card .note { color: var(--muted); font-size: 13px; margin: 18px 0 0; text-align: center; }
.auth-card .note .heart { color: var(--pink); }
.auth-foot { margin-top: 28px; text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 20px 4px; align-items: center; text-align: center; gap: 10px; }
  .auth-logo { width: min(300px, 82vw); margin: 0 auto; }
  .auth-hero h1, .auth-hero p, .auth-hero .pills { display: none; }
  .auth-panel { padding: 12px 16px 16px; justify-content: flex-start; }
  .auth-card { padding: 28px 22px 22px; border-radius: 20px; }
  .auth-ribbon { opacity: .4; }
  .auth-ribbon .sky { display: none; }
}
@media (max-width: 640px) {
  .site-head { padding: 14px 16px; }
  .doc { margin: 0 0 24px; border-radius: 0; border-left: 0; border-right: 0; padding: 26px 18px 30px; }
  .doc h1 { font-size: 25px; }
  .site-brand img { height: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 6px; }
}
