/* ReGIS portal (Revenue Growth Intelligence System; formerly TAPS) -- Gortons / Nexus Bridge palette */
:root {
  /* livelier shades of the Gortons / Nexus Bridge palette (user, 2026-11-17: "very sleepy") */
  --blue: #1F6FAE; --blue-2: #2C8BD0; --ink: #17507D; --berry: #B4142D; --gold: #F2B441;
  --sage: #5FA45A; --sky: #8EC5EA;
  --surface: #FFF9F0; --card: #FFFFFF; --line: #E8DFD1;
  --text: #1C3A52; --text-2: #3E5A70; --muted: #6E6A64;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--surface); }
a { color: inherit; }

/* ---------------- sign in: one centred section + parent-company footer ---------------- */
.login {
  min-height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden;
  background:
    radial-gradient(760px 560px at 90% 4%, rgba(79,184,238,.42) 0%, transparent 68%),
    radial-gradient(600px 460px at 100% 100%, rgba(31,111,174,.16) 0%, transparent 70%),
    radial-gradient(640px 520px at 6% 96%, rgba(242,180,65,.26) 0%, transparent 70%),
    radial-gradient(520px 420px at 4% 8%, rgba(31,111,174,.10) 0%, transparent 70%),
    linear-gradient(180deg, #FFFDF9 0%, var(--surface) 100%);
}
/* a soft blue halo sits behind the card so the centre of the page carries the colour */
.login::before { content: ""; position: absolute; left: 50%; top: 52%; width: 760px; height: 560px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(44,139,208,.30), rgba(44,139,208,0)); pointer-events: none; }
.login-main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 48px 20px 32px; }
.regis-hero { margin: 0 0 -4px; font-size: 22px; font-weight: inherit; }
.login-form { width: min(400px, 100%); background: var(--card); border-radius: 18px; border: 1px solid rgba(23,80,125,.08);
  padding: 34px 32px 32px; box-shadow: 0 30px 70px -28px rgba(15,54,90,.45), 0 2px 6px rgba(15,54,90,.06); display: grid; gap: 8px;
  position: relative; overflow: hidden; }
/* brand ribbon across the top of the card */
.login-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 45%, var(--gold) 75%, var(--berry) 100%); }
.login-form h2 { margin: 0 0 6px; font-size: 26px; color: var(--blue); }
.muted { color: var(--muted); margin: 0 0 10px; font-size: 14px; }
.login-form label { font-size: 13px; font-weight: 600; margin-top: 8px; color: var(--text); }
.login-form input { height: 46px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; color: var(--text);
  background: #fffdfa; transition: border-color .15s, box-shadow .15s; }
.login-form input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(44,139,208,.18); }
.login-form button { margin-top: 18px; height: 48px; border: 0; border-radius: 10px; color: #fff; font: inherit; font-weight: 700;
  letter-spacing: .01em; cursor: pointer; background: linear-gradient(135deg, #D02040 0%, var(--berry) 100%);
  box-shadow: 0 10px 22px -10px rgba(180,20,45,.75); transition: transform .12s, box-shadow .12s, filter .12s; }
.login-form button:hover, .login-form button:focus-visible { filter: brightness(1.06); transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(180,20,45,.8); outline: none; }
.alert { background: #fdecee; color: var(--berry); border: 1px solid #f5c6cd; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
/* what's inside: three checks in a row under the card */
.features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.features li { padding-left: 30px; position: relative; color: var(--text); font-weight: 500; font-size: 14px; line-height: 20px; }
.features li::before { content: ""; position: absolute; left: 0; top: -1px; width: 22px; height: 22px;
  background: url("regis-bullet.svg") center / contain no-repeat; }
/* footer: ReGIS is the product, Nexus Bridge the parent company */
.login-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 12px 40px;
  color: rgba(255,255,255,.88); font-size: 12px;
  /* the blue of the former sign-in half (user, 2026-11-17) */
  background:
    radial-gradient(600px 160px at 85% 0%, rgba(255,255,255,.16) 0%, transparent 65%),
    radial-gradient(500px 160px at 10% 100%, rgba(242,180,65,.22) 0%, transparent 70%),
    linear-gradient(150deg, var(--blue-2) 0%, var(--blue) 48%, #15507F 100%); }
.login-footer .by { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
/* full-colour Nexus Bridge logo straight on the blue (transparent PNG, no tile); a thin white halo
   keeps its navy lettering legible without hiding the blue behind it */
.parent-logo { height: 54px; width: auto;
  filter: drop-shadow(0 0 .6px rgba(255,255,255,.95)) drop-shadow(0 0 1.4px rgba(255,255,255,.8)) drop-shadow(0 0 8px rgba(255,255,255,.28)); }
.login-footer .copy { margin-left: auto; }
@media (max-width: 640px) {
  .login-main { justify-content: flex-start; padding-top: 36px; gap: 22px; }
  .regis-hero { font-size: 18px; }
  .login-form { padding: 28px 22px 24px; }
  .features { flex-direction: column; align-items: flex-start; }
  .login-footer { padding: 10px 20px; flex-wrap: wrap; }
  .parent-logo { height: 40px; }
}

/* ---------------- app shell ---------------- */
.app-page { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.topbar { position: relative; flex: 0 0 auto; height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 20px;
  background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px -6px rgba(23,80,125,.25); }
/* a thin brand-colour ribbon across the top of the app */
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 45%, var(--gold) 75%, var(--berry) 100%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.tabs { display: flex; align-items: stretch; height: 100%; margin-left: 12px; }
.tabs a { display: flex; align-items: center; padding: 0 16px; text-decoration: none; font-weight: 600; font-size: 15px;
  color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--blue); border-bottom-color: var(--berry); }
/* "Details" dropdown in the top bar: the detail pages under the overview (user, 2026-11-17) */
.navmenu { position: relative; display: flex; align-items: stretch; }
.navmenu summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 0 16px; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; user-select: none; }
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu summary:hover, .navmenu[open] summary { color: var(--ink); }
.navmenu.on summary { color: var(--blue); border-bottom-color: var(--berry); }
.navmenu .navmenu-cur { font-weight: 500; }
.navmenu .caret { font-size: 11px; transition: transform .15s; }
.navmenu[open] .caret { transform: rotate(180deg); }
.navmenu .menu { position: absolute; left: 4px; top: calc(100% + 2px); background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 34px -14px rgba(29,75,105,.40); min-width: 270px; padding: 6px; z-index: 20; }
.navmenu .menu a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink);
  border-left: 3px solid transparent; }
.navmenu .menu a b { display: block; font-size: 14px; font-weight: 600; }
.navmenu .menu a small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.navmenu .menu a:hover { background: #F3F9FE; }
.navmenu .menu a.on { background: #EEF6FD; border-left-color: var(--blue); }
.spacer { flex: 1; }
.client { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
  background: linear-gradient(135deg, #E3F1FB 0%, #FFF1D6 100%); border: 1px solid #D4E7F5; border-radius: 999px; padding: 5px 12px; }
.user { position: relative; }
.user summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 600; }
.user summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.user .menu { position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px -12px rgba(29,75,105,.35); min-width: 160px; padding: 6px; z-index: 10; }
.user .menu a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.user .menu a:hover { background: #f3eee6; }
/* the app page uses the sign-in page's background, so nothing flashes cream while loading */
.app-page { background:
    radial-gradient(760px 560px at 90% 4%, rgba(79,184,238,.34) 0%, transparent 68%),
    radial-gradient(640px 520px at 6% 96%, rgba(242,180,65,.22) 0%, transparent 70%),
    linear-gradient(180deg, #FFFDF9 0%, var(--surface) 100%); }
.stage { position: relative; flex: 1 1 auto; min-height: 0; }
.mount, .mount iframe { width: 100%; height: 100%; border: 0; display: block; }
.mount iframe { opacity: 0; transition: opacity .45s ease; }
.mount iframe.ready { opacity: 1; }
/* loading overlay: dashboard-shaped placeholders + the animated ReGIS mark */
.status { position: absolute; inset: 0; overflow: hidden; transition: opacity .45s ease; }
.status.done { opacity: 0; pointer-events: none; }
.status.error .loader-text { color: var(--berry); max-width: 26em; text-align: center; }
.status.error .ld-ring, .status.error .ld-arrow, .status.error .ld-core, .status.error .sk-bar, .status.error .sk-node { animation: none; }
.skeleton { position: absolute; inset: 0; display: flex; }
.sk-filters { width: 260px; flex: none; padding: 12px 12px; display: flex; flex-direction: column; gap: 0;
  justify-content: space-between; background: rgba(255,255,255,.72); border-right: 1px solid var(--line); }
.sk-row { display: flex; gap: 10px; align-items: center; }
.sk-grid { flex: 1; min-width: 0; padding: 10px 12px; display: grid; grid-template-rows: 46px 2.2fr 2.6fr 1fr; gap: 8px; }
.sk-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-height: 0; }
.sk-row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; min-height: 0; }
.sk-card { background: rgba(255,255,255,.86); border: 1px solid #EFE6D8; border-radius: 12px; padding: 14px 16px; min-height: 0;
  box-shadow: 0 10px 24px -16px rgba(23,80,125,.30); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.sk-bar, .sk-node { border-radius: 6px; background: linear-gradient(90deg, #EEF2F6 0%, #F7F4EE 40%, #E3EEF8 50%, #F7F4EE 60%, #EEF2F6 100%);
  background-size: 300% 100%; animation: shimmer 1.6s ease-in-out infinite; }
.sk-btn { height: 28px; width: 70%; margin-bottom: 8px; }
.sk-label { height: 9px; width: 38%; }
.sk-input { height: 26px; flex: 1; }
.sk-title { height: 14px; width: 55%; margin-bottom: 4px; }
.sk-line { height: 10px; width: 100%; }
.sk-line:nth-child(odd) { width: 86%; }
.sk-tree { align-items: center; }
.sk-tree .sk-title { align-self: flex-start; }
.sk-node { width: 92px; height: 44px; border-radius: 8px; }
.sk-root { margin-top: 8%; }
.sk-nodes { display: flex; gap: 22px; margin-top: 18px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.loader { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 12px;
  padding: 22px 30px 18px; border-radius: 18px; background: rgba(255,255,255,.88); backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px -24px rgba(15,54,90,.45); }
.loader-mark { width: 64px; height: 64px; overflow: visible; }
.ld-ring { transform-origin: 30px 34px; animation: ld-spin 1.4s cubic-bezier(.55,.15,.45,.85) infinite; }
.ld-arrow { animation: ld-launch 1.4s ease-in-out infinite; }
.ld-core { transform-origin: 30px 34px; animation: ld-pulse 1.4s ease-in-out infinite; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
@keyframes ld-launch { 0%, 100% { transform: translate(0, 0); opacity: 1; } 50% { transform: translate(3px, -3px); opacity: .85; } }
@keyframes ld-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.loader-text { font-size: 14px; font-weight: 600; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .sk-bar, .sk-node, .ld-ring, .ld-arrow, .ld-core { animation: none; } }
@media (max-width: 860px) { .sk-filters { display: none; } .sk-row3, .sk-row2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .client { display: none; }
  .topbar { gap: 10px; padding: 0 12px; }
}

/* ---------------- ReGIS logo lockup (mark = static/regis-mark.svg; wordmark is live text) ---------------- */
.regis { display: inline-flex; align-items: center; gap: .55em; line-height: 1; text-decoration: none; }
.regis-mark { width: 2.7em; height: 2.7em; flex: none; }
.regis-text { display: flex; flex-direction: column; gap: .32em; }
.regis-word { font-family: Sora, Inter, system-ui, sans-serif; font-size: 2.05em; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.regis-word .re { background: linear-gradient(90deg, var(--blue) 0%, #4FB8EE 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.regis-sub { font-family: Sora, Inter, system-ui, sans-serif; font-size: .6em; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--berry); white-space: nowrap; }
.regis--compact { font-size: 16px; }
.regis--hero { font-size: 22px; }
.regis--bar { font-size: 11.5px; }
.regis--bar .regis-word { font-size: 1.95em; }
