/* NeuroWatch — paleta luminosa, Tahoma/Arial, marca evidente. */
:root {
  --ink: #0a2540;
  --muted: #3d5a73;
  --paper: #f4fbff;
  --card: #ffffff;
  --line: rgba(18, 120, 190, 0.16);
  --teal: #12b8c9;
  --teal-2: #1ad4c2;
  --navy: #0d4f8c;
  --sky: #2eb8ff;
  --gold: #f0c14b;
  --off: #d97706;
  --on: #059669;
  --dysk: #7c3aed;
  --crit: #dc2626;
  --mint: #e8fffb;
  --shine: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 10px 28px rgba(46, 184, 255, 0.28);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 12px 36px rgba(13, 79, 140, 0.1);
  --radius: 20px;
  --radius-btn: 14px;
  --tap: 52px;
  --font: Tahoma, Arial, Helvetica, sans-serif;
  --display: Tahoma, Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[data-type="md"] { font-size: 16px; }
html[data-type="lg"] { font-size: 18px; }
html[data-type="xl"] { font-size: 21px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(90% 55% at 8% -12%, rgba(80, 220, 255, 0.42), transparent 58%),
    radial-gradient(70% 45% at 100% -8%, rgba(255, 214, 120, 0.38), transparent 52%),
    radial-gradient(50% 40% at 70% 100%, rgba(26, 212, 194, 0.18), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #eef9ff 42%, #e7fff8 100%);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: #0d7ad4; text-decoration: none; }
a:hover { color: #0891b2; }
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 80;
  font-weight: 700;
}
.skip:focus { left: 12px; }

.np-shell { min-height: 100vh; display: flex; flex-direction: column; }
.np-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px clamp(16px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(46, 184, 255, 0.22);
  box-shadow: 0 8px 28px rgba(13, 79, 140, 0.08);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 30;
}
.np-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  min-width: 0;
}
.np-brand:hover { color: inherit; }
.np-logo-wrap {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 1px rgba(46, 184, 255, 0.35),
    0 0 22px rgba(46, 184, 255, 0.45),
    0 8px 18px rgba(18, 184, 201, 0.22);
}
.np-logo {
  height: 58px;
  width: 58px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(18, 148, 232, 0.35));
}
.np-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}
.np-wordmark b {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a3a66;
  text-shadow: 0 1px 0 #fff, 0 0 18px rgba(46, 184, 255, 0.45);
}
.np-wordmark b span {
  color: #1a8cdb;
  text-shadow: 0 1px 0 #fff, 0 0 16px rgba(80, 220, 255, 0.7);
}
.np-wordmark small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3d7aa8;
}
.np-top-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.np-nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.np-nav a, .np-btn, .np-type button {
  color: var(--navy);
  border: 1px solid rgba(46, 184, 255, 0.28);
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff, #eef9ff);
  box-shadow: 0 1px 0 #fff inset, 0 4px 12px rgba(46, 184, 255, 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.np-nav a.active, .np-nav a:hover, .np-btn:hover, .np-type button:hover {
  background: linear-gradient(180deg, #e8fffb, #d9f6ff);
  border-color: rgba(18, 184, 201, 0.45);
  color: var(--navy);
}
.np-type { display: flex; gap: 4px; }
.np-type button { min-width: 44px; padding: 8px 10px; letter-spacing: 0; }
.np-main { width: min(1160px, calc(100% - 28px)); margin: 28px auto 72px; flex: 1; }
.np-footer {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.45;
}

.hero h1, .gate h1, .login-guide h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: #083a6b;
  font-weight: 700;
  text-shadow: 0 1px 0 #fff, 0 8px 24px rgba(46, 184, 255, 0.25);
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0ea5c6;
  margin: 0 0 10px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36rem; margin: 0; }

.gate-split {
  display: grid;
  gap: 22px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .gate-split { grid-template-columns: 1.05fr 0.95fr; gap: 32px; }
}
.gate { max-width: none; }
.gate-actions {
  display: grid;
  gap: 12px;
  margin: 22px 0 8px;
}
@media (min-width: 560px) {
  .gate-actions { grid-template-columns: 1fr 1fr; }
}
.door {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 7.2rem;
  padding: 1.25rem 1.3rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbff 100%);
  color: var(--ink);
  border: 1px solid rgba(46, 184, 255, 0.28);
  box-shadow: var(--shine);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.door::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 55%;
  height: 46%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), transparent 70%);
  pointer-events: none;
}
.door:hover, .door:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 #fff inset, 0 14px 32px rgba(46, 184, 255, 0.32);
  color: var(--ink);
}
.door strong {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: #083a6b;
  position: relative;
  z-index: 1;
}
.door span { color: var(--muted); font-weight: 700; font-size: 1rem; position: relative; z-index: 1; }
.door--clinic {
  background: linear-gradient(165deg, #3ad7ff 0%, #1a9cf0 48%, #12d4c4 100%);
  border-color: rgba(255, 255, 255, 0.55);
  color: #05314d;
}
.door--clinic strong, .door--clinic span { color: #06324a; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); }
.door--clinic span { opacity: 0.92; }

.guide-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 255, 251, 0.92));
  border: 1px solid rgba(46, 184, 255, 0.28);
  border-radius: 22px;
  padding: 22px 24px 20px;
  box-shadow: var(--shine);
}
.guide-card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  color: #083a6b;
  text-shadow: 0 1px 0 #fff;
}
.guide-card p { margin: 0 0 12px; color: var(--muted); }
.guide-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink);
}
.guide-card li { margin: 8px 0; }
.guide-safe {
  margin-top: 14px !important;
  font-size: 0.92rem;
  color: #0d4f8c !important;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 720px) {
  .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 6.6rem;
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(180deg, #ffffff, #f4fbff);
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--ink);
  border: 1px solid rgba(46, 184, 255, 0.2);
  font-weight: 700;
  transition: transform 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 50%;
  height: 40%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), transparent 70%);
  pointer-events: none;
}
.tile:hover, .tile:focus-visible { transform: translateY(-2px); color: var(--ink); }
.tile svg { width: 1.7rem; height: 1.7rem; color: #12b8c9; position: relative; z-index: 1; }
.tile b { display: block; margin-top: 1rem; font-size: 1.05rem; position: relative; z-index: 1; }

.grid-3, .grid-2 { display: grid; gap: 14px; }
@media (min-width: 840px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin: 0 0 8px; font-family: var(--display); color: var(--navy); }
.muted { color: var(--muted); }
.kpi { font-size: 2rem; font-weight: 800; }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 3px 8px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.pill-on { background: #d1fae5; color: var(--on); }
.pill-off { background: #ffedd5; color: var(--off); }
.pill-discinesia { background: #ede9fe; color: var(--dysk); }
.pill-incerto, .pill-sem_dados, .pill-sono { background: #e2e8f0; color: #334155; }
.pill-critica, .pill-alta { background: #fee2e2; color: var(--crit); }
.pill-media { background: #ffedd5; color: var(--off); }
.pill-baixa { background: #e0f2fe; color: #075985; }
.pill-sus { background: #dbeafe; color: #1d4ed8; }
.pill-privada { background: #d1fae5; color: #047857; }
.pill-congelamento { background: #dbeafe; color: #1d4ed8; }
.pill-agitacao { background: #ffedd5; color: #c2410c; }
.pill-pendente { background: #fef3c7; color: #92400e; }
.pill-confirmado { background: #d1fae5; color: #047857; }
.pill-descartado { background: #e2e8f0; color: #334155; }

.table-wrap { overflow: auto; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #eceff3; vertical-align: middle; }
th {
  font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase;
  color: #6b7c8d; font-weight: 700; background: #f7f8fa;
}
tbody tr:nth-child(odd) { background: #ffffff; }
tbody tr:nth-child(even) { background: #f4f6f8; }
tbody tr:hover { background: #eef6fb; }
td:last-child { white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 0.4rem 0.95rem;
  min-height: 34px;
  background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
  color: #fff;
  font-weight: 700; cursor: pointer;
  font-family: inherit; font-size: 0.82rem;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.22);
  letter-spacing: 0.01em;
}
.btn.secondary {
  background: #fff;
  color: #3d5a73;
  border: 1px solid #d5dee6;
  box-shadow: none;
  text-shadow: none;
}
.btn.danger { background: #dc2626; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); box-shadow: none; text-shadow: none; }
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-sm { min-height: 30px; padding: 0.28rem 0.75rem; font-size: 0.75rem; }
.login-box .btn, .patient-ui .btn:not(.btn-sm) { min-height: 46px; padding: 0.7rem 1.1rem; font-size: 1rem; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.flash { padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; font-weight: 600; }
.flash-danger { background: #fee2e2; }
.flash-success { background: #d1fae5; }
.flash-info, .flash-warning { background: #e0f2fe; }
.warn { background: #fff7ed; border: 1px solid #fdba74; border-radius: 14px; padding: 12px 14px; color: #9a3412; }

.form { display: grid; gap: 14px; }
label { font-size: 0.95rem; font-weight: 800; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 14px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); font: inherit; background: #fff;
  min-height: var(--tap);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sky);
  outline: 3px solid rgba(46, 184, 255, 0.28);
}
.card input, .card select, .card textarea { min-height: 38px; padding: 8px 10px; }
.login-box { width: min(440px, 100%); margin: 0; }
.login-split {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) {
  .login-split { grid-template-columns: minmax(300px, 420px) 1fr; gap: 40px; }
}
.login-guide {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 255, 251, 0.9));
  border: 1px solid rgba(46, 184, 255, 0.25);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.login-guide h2 { margin: 0 0 10px; font-size: 1.5rem; color: #083a6b; }
.login-guide p { margin: 0 0 10px; color: var(--muted); }
.login-guide .cred {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 0;
  border: 1px solid rgba(46, 184, 255, 0.2);
  color: var(--ink);
  font-size: 0.98rem;
}
.login-guide .cred strong { color: #0d4f8c; }

.big-next {
  background: linear-gradient(160deg, #3ad7ff 0%, #1a9cf0 45%, #12d4c4 100%);
  color: #05314d;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shine);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.big-next .time { font-family: var(--display); font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1; }
.patient-ui { font-size: 1.05rem; }
.patient-ui .btn { min-height: var(--tap); }

.chart-box { height: 240px; position: relative; }
.list-feed { list-style: none; margin: 0; padding: 0; border-radius: 10px; overflow: hidden; }
.list-feed li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  font-size: 0.88rem;
  border-bottom: 1px solid #eceff3;
}
.list-feed li:nth-child(odd) { background: #ffffff; }
.list-feed li:nth-child(even) { background: #f4f6f8; }
.list-feed li:last-child { border-bottom: 0; }
.list-feed .meta { font-size: 0.78rem; color: var(--muted); }
.card h3 { font-size: 1.05rem; font-weight: 700; }
pre.code {
  background: #0a3a66;
  color: #d7efe9;
  padding: 16px;
  border-radius: 16px;
  overflow: auto;
  font-size: 0.8rem;
}
.list-plain { margin: 0; padding-left: 18px; }
.list-plain li { margin: 8px 0; }

.chome-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px;
}
.chome-avatar {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #3ad7ff, #12d4c4);
  color: #05314d; font-weight: 800; font-size: 0.85rem;
  box-shadow: 0 0 16px rgba(46, 184, 255, 0.45);
}

.pdash-score {
  margin-top: 16px;
  padding: 22px 22px 16px;
  border-radius: 24px;
  background: linear-gradient(165deg, #ffffff 0%, #f4fbff 100%);
  border: 1px solid rgba(13, 79, 140, 0.12);
  box-shadow: 0 16px 36px rgba(13, 79, 140, 0.08);
}
.pdash-score--otimo { border-color: rgba(18, 181, 160, 0.45); background: linear-gradient(165deg, #ffffff, #ecfdf8); }
.pdash-score--leve { border-color: rgba(240, 193, 75, 0.55); }
.pdash-score--moderado { border-color: rgba(245, 158, 11, 0.5); background: linear-gradient(165deg, #ffffff, #fff7ed); }
.pdash-score--atencao { border-color: rgba(225, 29, 72, 0.35); background: linear-gradient(165deg, #ffffff, #fff1f2); }
.pdash-score-row {
  display: grid;
  gap: 18px;
  align-items: center;
}
@media (min-width: 720px) {
  .pdash-score-row { grid-template-columns: auto 1fr; gap: 28px; }
}
.pdash-num {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle at 40% 32%, #fff, #e8f6ff);
  border: 6px solid #0d4f8c;
  box-shadow: 0 10px 24px rgba(13, 79, 140, 0.16);
}
.pdash-score--otimo .pdash-num { border-color: #12b5a0; }
.pdash-score--leve .pdash-num { border-color: #c9a227; }
.pdash-score--moderado .pdash-num { border-color: #f59e0b; }
.pdash-score--atencao .pdash-num { border-color: #e11d48; }
.pdash-num strong {
  font-family: var(--display);
  font-size: 3.1rem;
  line-height: 0.9;
  color: #083a6b;
}
.pdash-num span { font-size: 0.78rem; font-weight: 700; color: #3d5a73; letter-spacing: 0.04em; }
.pdash-score-copy h2 {
  font-family: var(--display);
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  color: #083a6b;
}
.pdash-score-copy p { margin: 0 0 10px; color: #3d5a73; line-height: 1.55; }
.pdash-hint { font-size: 0.92rem; color: #3d5a73; }
.pdash-scale {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}
@media (min-width: 720px) {
  .pdash-scale { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pdash-scale li {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(13, 79, 140, 0.1);
  font-size: 0.82rem;
  color: #3d5a73;
}
.pdash-scale li b { display: block; color: #0d4f8c; }
.pdash-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
@media (min-width: 900px) {
  .pdash-grid { grid-template-columns: 1fr 1fr; }
  .pdash-card--wide { grid-column: 1 / -1; }
}
.pdash-card h3 { margin-top: 0; }
.pdash-card .muted { margin-top: 0; }
.pdash-glossary { margin: 0; padding-left: 1.1rem; color: #3d5a73; }
.pdash-glossary li { margin: 8px 0; }
.chart-box--md { height: 220px; }
.chart-box--lg { height: 280px; }
.nature-strip {
  margin-top: 36px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff, #f4fbff);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(46, 184, 255, 0.2);
}
.nature-strip h2 { font-family: var(--display); margin: 0 0 6px; font-size: 1.35rem; color: var(--navy); }
.nature-strip p { margin: 0; color: var(--muted); }
.nature-strip a { font-weight: 800; }

@media (max-width: 839px) {
  .np-top { flex-direction: column; align-items: flex-start; }
  .np-top-end { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .door, .tile { transition: none; }
}

.nw-sec {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 14px 14px;
  margin: 0 0 12px;
  background: #fff;
}
.nw-sec summary {
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 0;
  list-style: none;
}
.nw-sec summary::-webkit-details-marker { display: none; }
.req { color: #dc2626; }
.hint { margin: 6px 0 0; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.check-inline { display: flex; align-items: center; gap: 8px; font-weight: 700; min-height: 38px; }
.check-inline input { width: auto; min-height: 0; }
.form-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}
.form-row [class^="span-"] { min-width: 0; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.cadastro-form .form-row input,
.cadastro-form .form-row select { min-height: 38px; padding: 8px 10px; }
@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-5, .span-6, .span-8, .span-12 { grid-column: auto; }
}

/* —— Login Dataryon: fundo claro, azul + ouro, órbita —— */
body.is-auth {
  background:
    radial-gradient(70% 48% at 8% 0%, rgba(240, 193, 75, 0.16), transparent 52%),
    radial-gradient(55% 40% at 100% 4%, rgba(13, 79, 140, 0.09), transparent 48%),
    linear-gradient(180deg, #fbfaf7 0%, #f7f9fc 42%, #eef3f8 100%);
}
body.is-auth .np-top {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(13, 79, 140, 0.08);
  box-shadow: none;
}
body.is-auth .np-main {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 32px;
}
body.is-auth .np-footer {
  max-width: 36rem;
  color: #5a6e82;
}
.np-copy {
  margin: 0 0 6px;
  font-weight: 700;
  color: #0d4f8c;
  font-size: 0.82rem;
}
.np-copy a { color: #0d4f8c; font-weight: 800; }
.np-copy a:hover { color: #b8860b; }
.np-legal {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: #6b7c8d;
}
.np-disc { margin: 0; font-size: 0.78rem; }

.auth-stage {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 960px) {
  .auth-stage { grid-template-columns: minmax(320px, 420px) minmax(0, 1.15fr); gap: 48px; }
}
.auth-copy h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  color: #083a6b;
  font-weight: 700;
  text-shadow: 0 1px 0 #fff;
}
.auth-kicker {
  color: #b8860b;
  letter-spacing: 0.16em;
}
.auth-lead {
  margin: 0 0 22px;
  color: #3d5a73;
  font-size: 1.05rem;
  max-width: 36rem;
  line-height: 1.55;
}

.login-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf7 100%);
  border: 1px solid rgba(13, 79, 140, 0.1);
  border-radius: 24px;
  padding: 26px 26px 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 40px rgba(13, 79, 140, 0.1),
    0 0 0 1px rgba(240, 193, 75, 0.18);
}
.login-card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.login-card-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(13, 79, 140, 0.2));
}
.login-card-brand strong {
  display: block;
  font-size: 1.15rem;
  color: #0a3a66;
  letter-spacing: -0.02em;
}
.login-card-brand strong span { color: #1a8cdb; }
.login-card-brand small {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8860b;
}
.login-card h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  color: #083a6b;
}
.login-card .form { margin-top: 14px; }
.login-card input, .login-card select {
  min-height: 46px;
  border-radius: 999px;
  border-color: rgba(13, 79, 140, 0.16);
  padding: 10px 16px;
  background: #fffef8;
}
.login-card input:focus, .login-card select:focus {
  border-color: #c9a227;
  outline: 3px solid rgba(240, 193, 75, 0.28);
}
.btn-auth {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a73c4 0%, #0d4f8c 100%);
  border: 1px solid rgba(240, 193, 75, 0.55);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 22px rgba(13, 79, 140, 0.28);
}
.btn-auth:hover { filter: brightness(1.06); color: #fff; }
.btn-auth-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(13, 79, 140, 0.28);
  color: #0d4f8c;
  font-weight: 700;
  background: #fff;
}
.btn-auth-outline:hover {
  border-color: #c9a227;
  color: #8a6d12;
  background: #fffdf5;
}
.auth-clinic-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #6b7c8d;
  font-weight: 600;
}
.login-card .cred {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fff8e8);
  border: 1px solid rgba(240, 193, 75, 0.35);
  border-left: 3px solid #c9a227;
  font-size: 0.92rem;
  color: var(--ink);
}
.login-card .cred strong { color: #0d4f8c; }

.nw-orbit {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  margin: 8px 0 0;
}
.nw-orbit-halo {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(201, 162, 39, 0.45);
  pointer-events: none;
  animation: nw-orbit-spin 55s linear infinite;
}
.nw-orbit-halo--in {
  inset: 22%;
  border-color: rgba(13, 79, 140, 0.16);
  animation: nw-orbit-spin 70s linear infinite reverse;
}
.nw-orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: 7.6rem;
  height: 7.6rem;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff 0%, #fbf6e8 48%, #eef6ff 100%);
  border: 2px solid rgba(201, 162, 39, 0.55);
  box-shadow:
    0 0 0 7px rgba(240, 193, 75, 0.12),
    0 16px 36px rgba(13, 79, 140, 0.14);
  padding: 0.4rem;
}
.nw-orbit-core img { height: 1.7rem; width: auto; margin-bottom: 0.12rem; }
.nw-orbit-core span {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d4f8c;
}
.nw-orbit-core strong {
  font-size: 1.05rem;
  color: #083a6b;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.nw-orbit-core em {
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 700;
  color: #b8860b;
}
.nw-orbit-sats {
  position: absolute;
  inset: 0;
  animation: nw-orbit-spin 48s linear infinite;
}
.nw-orbit-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.2rem;
  height: 4.2rem;
  margin: -2.1rem 0 0 -2.1rem;
  transform: rotate(var(--a)) translateY(-148px) rotate(calc(-1 * var(--a)));
}
.nw-orbit-label {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid rgba(201, 162, 39, 0.45);
  box-shadow: 0 10px 24px rgba(13, 79, 140, 0.1);
  text-align: center;
  animation: nw-orbit-spin 48s linear infinite reverse;
}
.nw-orbit-node.nw-orbit-tone-navy .nw-orbit-label { border-color: rgba(13, 79, 140, 0.28); }
.nw-orbit-label em {
  font-style: normal;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b8860b;
  line-height: 1.1;
}
.nw-orbit-label strong {
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0a3a66;
}
@keyframes nw-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 959px) {
  .nw-orbit { max-width: 320px; margin-inline: auto; }
  .nw-orbit-node { transform: rotate(var(--a)) translateY(-118px) rotate(calc(-1 * var(--a))); }
  .auth-copy { text-align: center; }
  .auth-lead { margin-inline: auto; }
  .login-card { max-width: 440px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-orbit-halo, .nw-orbit-sats, .nw-orbit-label { animation: none; }
}



