:root {
  --navy: #0e2035;
  --navy-2: #14304b;
  --card: #16324a;
  --line: #294863;
  --teal: #2dd4bf;
  --teal-dim: #1fa896;
  --text: #e7eff6;
  --muted: #9db3c6;
  --danger: #ff9b9b;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, #1a3a5a 0%, var(--navy) 55%, #0a1826 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}
.card {
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--card) 0%, var(--navy-2) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 32px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: .2px; margin-bottom: 22px; }
.brand .snf { color: var(--text); }
.brand .ist { color: var(--teal); }
.brand .phys { font-size: 12px; font-weight: 600; letter-spacing: 3px; color: var(--muted); margin-left: 4px; vertical-align: 2px; }
h1 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.sub { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 22px; }
.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
input {
  width: 100%; font-size: 16px; color: var(--text);
  background: #0f2439; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #5f7891; }
input:focus { border-color: var(--teal-dim); box-shadow: 0 0 0 3px rgba(45, 212, 191, .18); }
button {
  width: 100%; margin-top: 16px; font-size: 15px; font-weight: 700; color: #06231f;
  background: var(--teal); border: 0; border-radius: 10px; padding: 13px 14px; cursor: pointer;
  transition: background .15s, transform .05s;
}
button:hover { background: #38e2cd; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: default; }
.msg { min-height: 18px; margin: 12px 2px 0; font-size: 13.5px; color: var(--danger); }
.foot { margin: 22px 0 0; font-size: 12px; color: #7c93a8; line-height: 1.5; }

/* Multi-field sign-in form: tighter rhythm than the single-field version. */
.lbl + input { margin-bottom: 14px; }
.lbl .hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: #7c93a8; }
.leads h2 { font-size: 15px; font-weight: 700; margin: 30px 0 4px; }
.alt { margin: 16px 0 0; font-size: 13px; }
.alt a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.alt a:hover { color: var(--teal); }

/* ---- Leads view ---- */
.leads-body { align-items: flex-start; }
.leads {
  width: 100%; max-width: 900px; margin: 0 auto;
  background: linear-gradient(180deg, var(--card) 0%, var(--navy-2) 100%);
  border: 1px solid var(--line); border-radius: 16px; padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.leads h1 { margin-bottom: 4px; }
.tablewrap { overflow-x: auto; margin-top: 18px; }
.leads table { width: 100%; border-collapse: collapse; font-size: 14px; }
.leads th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.leads td { padding: 12px 12px 12px 0; border-bottom: 1px solid rgba(41, 72, 99, .5); vertical-align: top; }
.leads tr:last-child td { border-bottom: 0; }
.leads td.num { font-variant-numeric: tabular-nums; color: var(--teal); font-weight: 700; }
