/* WellCare HQ styles. Brand: teal #0F6E56, sage #8FDCC0 / #5DCAA5,
   ivory #F6F4ED, ink #1C1C1A. DM Serif Display headings, Inter body. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url('/fonts/DMSerifDisplay.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --teal: #0F6E56;
  --teal-dark: #0B4F3E;
  --sage: #8FDCC0;
  --sage-deep: #5DCAA5;
  --ivory: #F6F4ED;
  --paper: #FFFFFF;
  --ink: #1C1C1A;
  --muted: #5F5E5A;
  --line: #E2DFD5;
  --amber-bg: #FAEEDA;
  --amber-ink: #633806;
  --red-bg: #FCEBEB;
  --red-ink: #791F1F;
  --green-bg: #E1F5EE;
  --green-ink: #085041;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 8px;
}
h1 { font-size: 30px; }
h2 { font-size: 21px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 12px; }

a { color: var(--teal); }

button, input { font: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--teal-dark); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-quiet {
  background: transparent;
  color: var(--teal);
  border-color: var(--line);
}
.btn-quiet:hover { background: var(--paper); }
.btn-block { width: 100%; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--sage-deep); outline-offset: 1px; border-color: var(--teal); }
.code-input { letter-spacing: 0.3em; font-size: 22px; text-align: center; }

.notice { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.notice-error { background: var(--red-bg); color: var(--red-ink); }
.notice-info { background: var(--green-bg); color: var(--green-ink); }

/* Sign-in screens */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(120% 100% at 18% 0%, #143A30 0%, #0B1F1A 55%);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border-radius: 16px;
  padding: 28px 24px;
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--teal); font-weight: 600; }
.auth-brand img { width: 32px; height: 32px; }
.qr { display: block; width: 200px; height: 200px; margin: 8px auto 12px; }
.secret { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; background: var(--ivory); padding: 8px 10px; border-radius: 8px; }
.muted { color: var(--muted); font-size: 14px; }

/* App shell */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--teal); }
.topbar-brand img { width: 28px; height: 28px; }
.topbar-user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.role-badge { background: var(--green-bg); color: var(--green-ink); padding: 2px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }

.page { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }
.page-head { margin-bottom: 20px; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.card-wide { grid-column: 1 / -1; }
.empty { color: var(--muted); font-size: 14px; margin: 0; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.checks li:last-child { border-bottom: 0; }
.ok { color: var(--green-ink); font-weight: 600; }
.bad { color: var(--red-ink); font-weight: 600; }

.loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--muted); }
