/* ============================================================
   PRAKTA — Shared design system
   Static HTML prototype • visual reference only
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand blue */
  --blue-700: #163fb0;
  --blue-600: #1b4dd9;   /* primary buttons / links */
  --blue-500: #2e63e8;
  --blue-100: #d6e2fd;
  --blue-50:  #eaf1fe;   /* active nav, soft fills */

  /* Navy (dark panel + headings) */
  --navy-900: #0b1e3b;   /* dark marketing panel */
  --navy-800: #122a52;
  --ink:      #12294e;   /* primary heading text */
  --ink-2:    #1d3760;

  /* Teal / mint accent */
  --teal-500: #16c79a;
  --teal-bright: #3cdaa0; /* teal eyebrow on dark panel */
  --mint-50:  #dcf6ec;
  --mint-700: #0d8f67;

  /* Slate / neutrals */
  --slate-600: #566279;
  --slate-500: #6c7890;
  --slate-400: #93a0b4;
  --slate-300: #b9c2d2;

  /* Surfaces & lines */
  --bg:       #ffffff;
  --bg-soft:  #f5f7fb;   /* app background */
  --line:     #e5e9f1;
  --line-2:   #eef1f7;

  /* Status */
  --amber-50: #fff3df;
  --amber-700:#9a6a16;

  /* Shape & shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 34, 70, .06);
  --shadow-md: 0 8px 24px rgba(16, 34, 70, .08);
  --shadow-lg: 0 24px 60px rgba(11, 30, 59, .14);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::placeholder { color: var(--slate-400); }

/* ---------- Brand logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(145deg, #1f58e6, #163fb0);
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(27, 77, 217, .28);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--ink);
}
.brand--sm .brand__mark { width: 32px; height: 32px; border-radius: 9px; }
.brand--sm .brand__name { font-size: 19px; }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow--teal { color: var(--teal-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  padding: 13px 18px; width: auto; transition: .16s ease;
  white-space: nowrap;
}
.btn--block { width: 100%; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 18px rgba(27,77,217,.25); }
.btn--primary:hover { background: var(--blue-700); text-decoration: none; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: #fcfdff; border-color: var(--slate-300); text-decoration: none; }
.btn--soft { background: var(--blue-50); color: var(--blue-600); }
.btn--soft:hover { background: var(--blue-100); text-decoration: none; }
.btn--sm { padding: 9px 13px; font-size: 13.5px; border-radius: var(--r-sm); gap: 7px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn__google { width: 18px; height: 18px; }

/* ---------- Form fields ---------- */
.field { display: block; margin-bottom: 18px; }
.field__label {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px;
}
.field__hint { font-size: 12.5px; color: var(--slate-500); margin-top: 7px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .icon-lead { position: absolute; left: 14px; color: var(--slate-400); width: 18px; height: 18px; pointer-events: none; }
.input-wrap .icon-trail { position: absolute; right: 12px; color: var(--slate-400); background: none; border: none; padding: 4px; display: grid; place-items: center; }
.input-wrap .icon-trail:hover { color: var(--slate-600); }
.input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; padding: 13px 14px; font-size: 15px; color: var(--ink);
  transition: .14s ease;
}
.input--icon { padding-left: 42px; }
.input--trail { padding-right: 42px; }
.input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-50); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236c7890' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* checkbox */
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--slate-300);
  display: grid; place-items: center; flex: none; transition: .14s; background: #fff;
}
.check__box svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.check input:checked + .check__box { background: var(--blue-600); border-color: var(--blue-600); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px var(--blue-50); }

/* divider with text */
.divider { display: flex; align-items: center; gap: 14px; color: var(--slate-500); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-weight: 600; font-size: 12.5px;
  padding: 5px 11px; border-radius: var(--r-pill); white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge--seen { background: var(--mint-50); color: var(--mint-700); }
.badge--arrived { background: #eef1f7; color: var(--ink-2); }
.badge--arrived .dot { background: var(--blue-600); }
.badge--booked { background: #eef1f7; color: var(--slate-600); }
.badge--booked .dot { background: var(--slate-400); }

/* ---------- Auth split layout ---------- */
.auth {
  height: 100vh; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
}
.auth__left { position: relative; display: flex; flex-direction: column; padding: 34px clamp(28px, 5vw, 84px); height: 100vh; overflow-y: auto; }
.auth__top { display: flex; align-items: center; justify-content: space-between; flex: none; }
.auth__top-link { font-size: 14px; color: var(--slate-600); }
.auth__top-link a { font-weight: 700; }
.auth__body { display: flex; flex-direction: column; max-width: 440px; width: 100%; margin: auto; padding: 48px 0; }
.auth__title { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; margin: 12px 0 10px; }
.auth__sub { color: var(--slate-600); font-size: 16px; margin-bottom: 26px; }

.auth__right {
  background: var(--navy-900);
  color: #fff; padding: clamp(26px, 3vw, 44px) clamp(34px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: safe center;
  position: relative; overflow: hidden;
  border-radius: 26px; margin: 14px 14px 14px 0;
}
.auth__right::before {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  right: -160px; top: -160px;
  background: radial-gradient(circle, rgba(60,218,160,.18), transparent 62%);
}
.auth__right::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  left: -150px; bottom: -170px;
  background: radial-gradient(circle, rgba(46,99,232,.26), transparent 60%);
}
.auth__right-inner { position: relative; z-index: 1; max-width: 480px; }
.auth__headline { font-size: clamp(30px, 2.9vw, 42px); font-weight: 800; color: #fff; line-height: 1.05; margin: 12px 0 14px; }
.auth__pitch { color: #b9c6dc; font-size: 16px; max-width: 420px; }

/* promo patient card (inside dark panel) */
.promo-card { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: 20px; margin-top: 18px; box-shadow: var(--shadow-lg); }
.promo-card__date { font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--blue-600); }
.promo-card__count { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 2px 0 8px; }
.promo-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.promo-row__time { font-weight: 700; font-size: 14px; color: var(--ink); width: 46px; flex: none; }
.promo-row__main { flex: 1; min-width: 0; }
.promo-row__name { font-weight: 700; font-size: 15px; }
.promo-row__reason { font-size: 13px; color: var(--slate-500); }

/* AI nudge integrated as a footer inside the patient card */
.promo-card--flush { padding-bottom: 0; overflow: hidden; }
.promo-foot {
  margin: 10px -20px 0; padding: 13px 20px;
  background: var(--blue-50); border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.promo-foot__spark { width: 32px; height: 32px; border-radius: 9px; background: #fff; color: var(--teal-500); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.promo-foot__main { flex: 1; min-width: 150px; }
.promo-foot__main b { display: block; font-size: 14px; color: var(--ink); line-height: 1.2; }
.promo-foot__main span { font-size: 12.5px; color: var(--slate-600); }
.promo-foot__btns { display: flex; gap: 8px; }
.chip--yes { background: var(--teal-500); color: #06241c; }
.chip--no { background: #fff; border-color: var(--line); color: var(--slate-600); }

/* small AI nudge card on dark panel */
.nudge { background: #0e2346; border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg); padding: 16px 18px; margin-top: 14px; max-width: 360px; box-shadow: var(--shadow-lg); }
.nudge__head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.nudge__spark { width: 28px; height: 28px; border-radius: 8px; background: rgba(60,218,160,.16); display: grid; place-items: center; color: var(--teal-bright); flex: none; }
.nudge__text { color: #aebbd2; font-size: 13.5px; margin: 10px 0 14px; }
.nudge__actions { display: flex; gap: 10px; }
.chip { border-radius: var(--r-pill); font-weight: 600; font-size: 13px; padding: 8px 14px; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.chip--go { background: var(--teal-500); color: #06241c; }
.chip--ghost { background: transparent; border-color: rgba(255,255,255,.18); color: #cdd8ea; }

/* ---------- Utility ---------- */
.muted { color: var(--slate-500); }
.stack-sm > * + * { margin-top: 10px; }
.hide { display: none !important; }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth__right { display: none; }
}
