/* myapi Gateway green. Shared tokens also cover the account console. */
html:root {
  --background: #f8fbf9;
  --foreground: #142d24;
  --card: #fff;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --primary: #08744c;
  --primary-foreground: #fff;
  --secondary: #e8f2ed;
  --secondary-foreground: #28513f;
  --muted: #eff5f1;
  --muted-foreground: #4f655a;
  --accent: #e1f1e8;
  --accent-foreground: #075d3c;
  --border: #d9e5dd;
  --input: #bbcec2;
  --ring: #22835a;
  --sidebar: #f3f8f5;
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--accent);
  --sidebar-accent-foreground: var(--accent-foreground);
  --sidebar-border: var(--border);
  --sidebar-ring: var(--ring);
  --wash: radial-gradient(ellipse at 12% 22%, #daf2e4 0%, transparent 55%), linear-gradient(120deg,#f8fcf9,#f2f8f3 75%,#e6f1e9);
  --lift: 0 14px 46px -26px rgb(22 66 41 / 28%);
}
html:root.dark {
  --background: #111c17; --foreground: #e6f3ea;
  --card: #192820; --primary: #79daaa; --primary-foreground: #102a1d;
  --secondary: #26392e; --secondary-foreground: #d5eadd;
  --muted: #213128; --muted-foreground: #aac2b2;
  --accent: #233f30; --accent-foreground: #a0e9c2;
  --border: #34483b; --input: #506958; --ring: #79daaa; --sidebar: #15231b;
  --wash: radial-gradient(ellipse at 15% 25%, #213d2d, transparent 60%), linear-gradient(120deg,#14221a,#17281e);
}
body { font-family: var(--font-sans), 'PingFang SC', 'Microsoft YaHei', sans-serif; }
::selection { background: var(--accent); color: var(--accent-foreground); }
header:has(nav) { background-color: color-mix(in srgb,var(--background) 94%,transparent); border-bottom: 1px solid var(--border); }
header nav a[aria-current='page'] { color: var(--primary); font-weight: 650; }
section:has(h1 .bg-clip-text), section:has(h2 .bg-clip-text) { background: var(--wash); }
section :is(h1,h2) .bg-clip-text { background-image: none; color: var(--primary); }
[aria-hidden][style*='radial-gradient'][class*='-z-10'] { background: var(--wash) !important; opacity: 1; }
section:has(h1) .landing-animate-fade-up.rounded-full { color: var(--accent-foreground); background: var(--accent); border-color: var(--border); }
section:has(h1) .landing-animate-fade-up.rounded-full span span { background-color: var(--primary); }
section:has(h1) p.text-muted-foreground\/80 { color: var(--muted-foreground); }
[data-slot='card'] { box-shadow: var(--lift); }
/* Center the authentication panel on wide screens, keep tall forms scrollable. */
.grid.h-svh:has(form) { min-height: 100svh; height: auto; background: var(--wash); }
.grid.h-svh:has(form) > .container { padding-block: 5rem 2rem; }
.grid.h-svh:has(form) > .container > .mx-auto { background: var(--card); border: 1px solid var(--border); border-radius: 1.15rem; padding: clamp(1.25rem,4vw,2.25rem); box-shadow: var(--lift); }
.grid.h-svh:has(form) form input:not([type='checkbox']):not([type='hidden']), .grid.h-svh:has(form) button[type='submit'] { min-height: 2.65rem; border-radius: .65rem; }
.grid.h-svh:has(form) a.underline { color: var(--primary); }
@media (max-width: 600px) { section:has(h1 .bg-clip-text) { padding-inline: 1.15rem; } }
