Full-screen landing page with glassmorphism cards linking to monitoring (8018), docs (8017), and analytics (8019). Sidebar is conditionally hidden on the portal route. Supports dark/light themes and i18n.
560 lines
14 KiB
CSS
560 lines
14 KiB
CSS
@import "tailwindcss";
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--font-sans: var(--font-geist-sans);
|
|
--font-mono: var(--font-geist-mono);
|
|
}
|
|
|
|
/* ═══ DARK THEME ═══ */
|
|
:root, [data-theme="dark"] {
|
|
--background: #06080d;
|
|
--foreground: #c8d6e5;
|
|
--accent: #00e5ff;
|
|
--accent-dim: #0097a7;
|
|
--accent-purple: #7c4dff;
|
|
--accent-pink: #ff4081;
|
|
--surface: rgba(12, 18, 30, 0.7);
|
|
--surface-border: rgba(0, 229, 255, 0.08);
|
|
--surface-hover: rgba(0, 229, 255, 0.04);
|
|
--text-primary: #ffffff;
|
|
--text-secondary: #c8d6e5;
|
|
--text-muted: #6b7280;
|
|
--text-accent: #00e5ff;
|
|
--text-accent-hover: #67edff;
|
|
--glow-cyan: 0 0 20px rgba(0, 229, 255, 0.15);
|
|
--grid-color: rgba(0, 229, 255, 0.03);
|
|
--row-hover: rgba(0, 229, 255, 0.04);
|
|
--input-bg: rgba(12, 18, 30, 0.6);
|
|
--input-border: rgba(0, 229, 255, 0.1);
|
|
--input-focus: rgba(0, 229, 255, 0.4);
|
|
--chart-grid: rgba(0, 229, 255, 0.06);
|
|
--btn-active-bg: rgba(0, 229, 255, 0.2);
|
|
--btn-active-border: rgba(0, 229, 255, 0.5);
|
|
--progress-bg: rgba(0, 229, 255, 0.08);
|
|
--spinner-track: rgba(0, 229, 255, 0.3);
|
|
--spinner-head: #00e5ff;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
/* ═══ LIGHT THEME ═══ */
|
|
[data-theme="light"] {
|
|
--background: #f7f8fc;
|
|
--foreground: #1e293b;
|
|
--accent: #0284c7;
|
|
--accent-dim: #0369a1;
|
|
--accent-purple: #7c3aed;
|
|
--accent-pink: #db2777;
|
|
--surface: rgba(255, 255, 255, 0.85);
|
|
--surface-border: rgba(2, 132, 199, 0.12);
|
|
--surface-hover: rgba(2, 132, 199, 0.04);
|
|
--text-primary: #0f172a;
|
|
--text-secondary: #475569;
|
|
--text-muted: #94a3b8;
|
|
--text-accent: #0284c7;
|
|
--text-accent-hover: #0369a1;
|
|
--glow-cyan: 0 4px 20px rgba(2, 132, 199, 0.08);
|
|
--grid-color: rgba(2, 132, 199, 0.04);
|
|
--row-hover: rgba(2, 132, 199, 0.05);
|
|
--input-bg: rgba(255, 255, 255, 0.8);
|
|
--input-border: rgba(2, 132, 199, 0.15);
|
|
--input-focus: rgba(2, 132, 199, 0.4);
|
|
--chart-grid: rgba(2, 132, 199, 0.08);
|
|
--btn-active-bg: rgba(2, 132, 199, 0.12);
|
|
--btn-active-border: rgba(2, 132, 199, 0.3);
|
|
--progress-bg: rgba(2, 132, 199, 0.1);
|
|
--spinner-track: rgba(2, 132, 199, 0.3);
|
|
--spinner-head: #0284c7;
|
|
color-scheme: light;
|
|
}
|
|
|
|
body {
|
|
background: var(--background);
|
|
color: var(--foreground);
|
|
font-family: var(--font-sans), system-ui, sans-serif;
|
|
transition: background 0.3s, color 0.3s;
|
|
}
|
|
|
|
/* Grid background — dark only */
|
|
[data-theme="dark"] body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: -1;
|
|
background-image:
|
|
linear-gradient(var(--grid-color) 1px, transparent 1px),
|
|
linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
|
|
background-size: 60px 60px;
|
|
mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 100%);
|
|
}
|
|
|
|
/* Top ambient glow — dark only */
|
|
[data-theme="dark"] body::after {
|
|
content: '';
|
|
position: fixed;
|
|
top: -200px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 800px;
|
|
height: 500px;
|
|
border-radius: 50%;
|
|
background: radial-gradient(ellipse, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Light theme subtle background */
|
|
[data-theme="light"] body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: -1;
|
|
background: radial-gradient(ellipse at 50% 0%, rgba(2, 132, 199, 0.03) 0%, transparent 60%);
|
|
}
|
|
|
|
/* Glass card */
|
|
.glass {
|
|
background: var(--surface);
|
|
backdrop-filter: blur(16px);
|
|
border: 1px solid var(--surface-border);
|
|
border-radius: 12px;
|
|
transition: border-color 0.2s, background 0.3s;
|
|
}
|
|
.glass:hover {
|
|
border-color: var(--input-border);
|
|
}
|
|
|
|
/* Gradient heading */
|
|
.gradient-text {
|
|
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
/* Table row glow on hover */
|
|
.row-glow:hover {
|
|
background: var(--row-hover);
|
|
}
|
|
|
|
/* Accent button */
|
|
.btn-accent {
|
|
background: var(--btn-active-bg);
|
|
border: 1px solid var(--surface-border);
|
|
color: var(--text-accent);
|
|
transition: all 0.2s;
|
|
}
|
|
.btn-accent:hover {
|
|
border-color: var(--btn-active-border);
|
|
box-shadow: var(--glow-cyan);
|
|
}
|
|
|
|
/* Input style */
|
|
.input-glass {
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
color: var(--foreground);
|
|
transition: border-color 0.2s;
|
|
}
|
|
.input-glass::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
.input-glass:focus {
|
|
outline: none;
|
|
border-color: var(--input-focus);
|
|
box-shadow: 0 0 12px rgba(2, 132, 199, 0.1);
|
|
}
|
|
|
|
/* Spinner */
|
|
.spinner {
|
|
border: 2px solid var(--spinner-track);
|
|
border-top-color: var(--spinner-head);
|
|
}
|
|
|
|
/* Themed text utility classes */
|
|
.text-t-primary { color: var(--text-primary); }
|
|
.text-t-secondary { color: var(--text-secondary); }
|
|
.text-t-muted { color: var(--text-muted); }
|
|
.text-t-accent { color: var(--text-accent); }
|
|
.text-t-accent:hover { color: var(--text-accent-hover); }
|
|
.border-t { border-color: var(--surface-border); }
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar { width: 6px; height: 6px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb { background: var(--surface-border); border-radius: 3px; }
|
|
::-webkit-scrollbar-thumb:hover { background: var(--input-border); }
|
|
|
|
/* ═══════════════════════════════════════════
|
|
PORTAL PAGE
|
|
═══════════════════════════════════════════ */
|
|
|
|
/* Portal accent palette */
|
|
:root, [data-theme="dark"] {
|
|
--portal-accent-green: #34d399;
|
|
--portal-accent-violet: #8b5cf6;
|
|
--portal-accent-cyan: #00e5ff;
|
|
}
|
|
[data-theme="light"] {
|
|
--portal-accent-green: #059669;
|
|
--portal-accent-violet: #7c3aed;
|
|
--portal-accent-cyan: #0284c7;
|
|
}
|
|
|
|
/* Root container */
|
|
.portal-page {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
overflow: hidden;
|
|
padding: 2rem;
|
|
}
|
|
|
|
/* ── Background: animated grid ── */
|
|
.portal-grid {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 0;
|
|
background-image:
|
|
linear-gradient(var(--grid-color) 1px, transparent 1px),
|
|
linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
|
|
background-size: 48px 48px;
|
|
mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 85%);
|
|
animation: portal-grid-drift 30s linear infinite;
|
|
}
|
|
@keyframes portal-grid-drift {
|
|
from { background-position: 0 0; }
|
|
to { background-position: 48px 48px; }
|
|
}
|
|
|
|
/* ── Background: floating orbs ── */
|
|
.portal-orb {
|
|
position: fixed;
|
|
border-radius: 50%;
|
|
filter: blur(100px);
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
animation: portal-float 12s ease-in-out infinite;
|
|
}
|
|
.portal-orb--1 {
|
|
width: 500px; height: 500px;
|
|
top: -15%; left: 15%;
|
|
background: radial-gradient(circle, rgba(0,229,255,0.12), transparent 70%);
|
|
animation-duration: 14s;
|
|
}
|
|
.portal-orb--2 {
|
|
width: 380px; height: 380px;
|
|
bottom: -10%; right: 10%;
|
|
background: radial-gradient(circle, rgba(139,92,246,0.1), transparent 70%);
|
|
animation-duration: 18s;
|
|
animation-delay: -6s;
|
|
}
|
|
.portal-orb--3 {
|
|
width: 300px; height: 300px;
|
|
top: 35%; left: 55%;
|
|
background: radial-gradient(circle, rgba(52,211,153,0.06), transparent 70%);
|
|
animation-duration: 22s;
|
|
animation-delay: -10s;
|
|
}
|
|
[data-theme="light"] .portal-orb--1 {
|
|
background: radial-gradient(circle, rgba(2,132,199,0.08), transparent 70%);
|
|
}
|
|
[data-theme="light"] .portal-orb--2 {
|
|
background: radial-gradient(circle, rgba(124,58,237,0.06), transparent 70%);
|
|
}
|
|
[data-theme="light"] .portal-orb--3 {
|
|
background: radial-gradient(circle, rgba(5,150,105,0.05), transparent 70%);
|
|
}
|
|
|
|
@keyframes portal-float {
|
|
0%, 100% { transform: translate(0, 0) scale(1); }
|
|
33% { transform: translate(25px, -18px) scale(1.04); }
|
|
66% { transform: translate(-18px, 12px) scale(0.96); }
|
|
}
|
|
|
|
/* ── Floating particles ── */
|
|
.portal-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
|
|
.portal-particle {
|
|
position: absolute;
|
|
width: 3px; height: 3px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
opacity: 0.25;
|
|
animation: portal-particle-drift 10s ease-in-out infinite;
|
|
}
|
|
@keyframes portal-particle-drift {
|
|
0%, 100% { transform: translate(0, 0); opacity: 0.15; }
|
|
50% { transform: translate(-15px, -30px); opacity: 0.4; }
|
|
}
|
|
|
|
/* ── Header / Branding ── */
|
|
.portal-header {
|
|
position: relative;
|
|
z-index: 10;
|
|
text-align: center;
|
|
margin-bottom: 3.5rem;
|
|
}
|
|
|
|
.portal-logo-mark {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 52px; height: 52px;
|
|
border-radius: 14px;
|
|
margin-bottom: 1.25rem;
|
|
background: var(--btn-active-bg);
|
|
border: 1px solid var(--surface-border);
|
|
color: var(--accent);
|
|
box-shadow: 0 0 30px rgba(0,229,255,0.08);
|
|
}
|
|
[data-theme="light"] .portal-logo-mark {
|
|
box-shadow: 0 4px 20px rgba(2,132,199,0.1);
|
|
}
|
|
|
|
.portal-title {
|
|
font-size: 4rem;
|
|
font-weight: 800;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1;
|
|
}
|
|
.portal-title-glow {
|
|
color: var(--text-primary);
|
|
}
|
|
.portal-title-accent {
|
|
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 60%, var(--accent-pink) 100%);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
[data-theme="dark"] .portal-title-glow {
|
|
text-shadow: 0 0 40px rgba(0,229,255,0.15);
|
|
}
|
|
|
|
.portal-subtitle {
|
|
margin-top: 0.75rem;
|
|
font-size: 1.05rem;
|
|
font-weight: 300;
|
|
letter-spacing: 0.12em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Animated divider with scan effect */
|
|
.portal-divider {
|
|
position: relative;
|
|
width: 240px;
|
|
height: 1px;
|
|
margin: 1.5rem auto 0;
|
|
background: linear-gradient(90deg, transparent 0%, var(--surface-border) 20%, var(--accent) 50%, var(--surface-border) 80%, transparent 100%);
|
|
transform-origin: center;
|
|
overflow: hidden;
|
|
}
|
|
.portal-divider-scan {
|
|
position: absolute;
|
|
top: 0; left: -40%;
|
|
width: 40%; height: 100%;
|
|
background: linear-gradient(90deg, transparent, var(--accent), transparent);
|
|
animation: portal-scan 3.5s ease-in-out infinite;
|
|
animation-delay: 1s;
|
|
}
|
|
@keyframes portal-scan {
|
|
0% { left: -40%; opacity: 0; }
|
|
10% { opacity: 1; }
|
|
90% { opacity: 1; }
|
|
100% { left: 100%; opacity: 0; }
|
|
}
|
|
|
|
/* ── Service Cards Grid ── */
|
|
.portal-cards {
|
|
position: relative;
|
|
z-index: 10;
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.5rem;
|
|
max-width: 960px;
|
|
width: 100%;
|
|
}
|
|
@media (max-width: 768px) {
|
|
.portal-cards {
|
|
grid-template-columns: 1fr;
|
|
max-width: 400px;
|
|
}
|
|
}
|
|
|
|
/* Individual card */
|
|
.portal-card {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 2.5rem 2rem 2rem;
|
|
border-radius: 16px;
|
|
background: var(--surface);
|
|
backdrop-filter: blur(24px);
|
|
border: 1px solid var(--surface-border);
|
|
text-decoration: none;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
transition: border-color 0.35s ease, box-shadow 0.35s ease;
|
|
}
|
|
.portal-card:hover {
|
|
border-color: var(--card-accent);
|
|
box-shadow:
|
|
0 0 40px var(--card-glow),
|
|
inset 0 0 40px rgba(0,0,0,0.02);
|
|
}
|
|
[data-theme="light"] .portal-card:hover {
|
|
box-shadow:
|
|
0 8px 40px var(--card-glow),
|
|
0 2px 8px rgba(0,0,0,0.04);
|
|
}
|
|
|
|
/* Corner brackets */
|
|
.portal-corner {
|
|
position: absolute;
|
|
width: 14px; height: 14px;
|
|
border-color: var(--card-accent);
|
|
opacity: 0;
|
|
transition: opacity 0.35s ease;
|
|
pointer-events: none;
|
|
}
|
|
.portal-card:hover .portal-corner { opacity: 0.7; }
|
|
.portal-corner--tl { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; }
|
|
.portal-corner--tr { top: 6px; right: 6px; border-top: 2px solid; border-right: 2px solid; }
|
|
.portal-corner--bl { bottom: 6px; left: 6px; border-bottom: 2px solid; border-left: 2px solid; }
|
|
.portal-corner--br { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; }
|
|
|
|
/* Decorative bg icon (large, faded) */
|
|
.portal-card-decor {
|
|
position: absolute;
|
|
top: -12px; right: -12px;
|
|
width: 80px; height: 80px;
|
|
color: var(--card-accent);
|
|
opacity: 0.04;
|
|
transition: opacity 0.35s;
|
|
pointer-events: none;
|
|
}
|
|
.portal-card:hover .portal-card-decor { opacity: 0.08; }
|
|
|
|
/* Icon container */
|
|
.portal-card-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 60px; height: 60px;
|
|
border-radius: 14px;
|
|
margin-bottom: 1.25rem;
|
|
background: var(--btn-active-bg);
|
|
border: 1px solid var(--surface-border);
|
|
color: var(--card-accent);
|
|
transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
|
|
}
|
|
.portal-card-icon svg {
|
|
width: 28px; height: 28px;
|
|
}
|
|
.portal-card:hover .portal-card-icon {
|
|
border-color: var(--card-accent);
|
|
box-shadow: 0 0 24px var(--card-glow);
|
|
}
|
|
|
|
/* Text */
|
|
.portal-card-title {
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0.5rem;
|
|
letter-spacing: -0.01em;
|
|
transition: color 0.3s;
|
|
}
|
|
.portal-card:hover .portal-card-title {
|
|
color: var(--card-accent);
|
|
}
|
|
.portal-card-desc {
|
|
font-size: 0.82rem;
|
|
line-height: 1.55;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
/* Enter action */
|
|
.portal-card-action {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
opacity: 0;
|
|
transform: translateY(6px);
|
|
transition: all 0.35s ease;
|
|
}
|
|
.portal-card:hover .portal-card-action {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
color: var(--card-accent);
|
|
}
|
|
.portal-card-action-icon {
|
|
width: 14px; height: 14px;
|
|
transition: transform 0.25s;
|
|
}
|
|
.portal-card:hover .portal-card-action-icon {
|
|
transform: translate(2px, -2px);
|
|
}
|
|
|
|
/* Bottom highlight bar */
|
|
.portal-card-bar {
|
|
position: absolute;
|
|
bottom: 0; left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 0; height: 2px;
|
|
border-radius: 2px;
|
|
background: var(--card-accent);
|
|
transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
|
|
}
|
|
.portal-card:hover .portal-card-bar {
|
|
width: 60%;
|
|
}
|
|
|
|
/* ── Footer ── */
|
|
.portal-footer {
|
|
position: relative;
|
|
z-index: 10;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-top: 3rem;
|
|
}
|
|
.portal-status-dot {
|
|
width: 6px; height: 6px;
|
|
border-radius: 50%;
|
|
background: #34d399;
|
|
box-shadow: 0 0 8px rgba(52,211,153,0.5);
|
|
animation: portal-pulse 2s ease-in-out infinite;
|
|
}
|
|
@keyframes portal-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
.portal-status-text {
|
|
font-size: 0.7rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Recharts overrides */
|
|
.recharts-cartesian-grid-horizontal line,
|
|
.recharts-cartesian-grid-vertical line {
|
|
stroke: var(--chart-grid) !important;
|
|
}
|
|
.recharts-text {
|
|
fill: var(--text-muted) !important;
|
|
}
|