:root {
    --bg: #0b1020;
    --panel: rgba(16, 24, 47, 0.82);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text: #e5ecff;
    --muted: #94a3b8;
    --primary: #5b8cff;
    --primary-2: #7c5cff;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --input: rgba(255, 255, 255, 0.04);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, Segoe UI, Arial, sans-serif; color: var(--text); }
body {
    background:
        radial-gradient(circle at top left, rgba(91, 140, 255, 0.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(124, 92, 255, 0.2), transparent 30%),
        linear-gradient(180deg, #0a0f1e 0%, #11192f 100%);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
    padding: 24px 0;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.brand-badge {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 24px rgba(91, 140, 255, 0.35);
    font-size: 18px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: stretch;
    padding: 26px 0 56px;
}
.card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}
.hero-copy {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-copy .eyebrow {
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}
.hero-copy h1 {
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.02;
    margin: 0 0 16px;
}
.hero-copy p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 0 28px;
}
.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 12px;
}
.stat {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.stat strong { display: block; font-size: 22px; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 14px; }

.auth-card {
    padding: 32px;
}
.auth-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
}
.auth-card .subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.6;
}
.form-grid {
    display: grid;
    gap: 18px;
}
.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #dbe6ff;
    font-weight: 600;
}
.field input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--input);
    color: white;
    border-radius: 16px;
    padding: 15px 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus {
    border-color: rgba(91, 140, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.16);
}
.field small { color: var(--muted); display: block; margin-top: 8px; }
.field .error {
    margin-top: 8px;
    color: #fecaca;
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 26px rgba(91, 140, 255, 0.35);
}
.btn-secondary {
    color: white;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}
.btn-block { width: 100%; }

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}
.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
    color: #bbf7d0;
}
.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: #fecaca;
}
.info-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}
.info-item {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.05);
}
.info-item strong { display: block; margin-bottom: 5px; }
.info-item span { color: var(--muted); font-size: 14px; }
.footer {
    padding: 24px 0 40px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.dashboard {
    padding: 18px 0 56px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}
.dashboard-main,
.dashboard-side {
    padding: 28px;
}
.kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.kpi {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .value { font-size: 26px; font-weight: 800; margin-top: 6px; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    font-size: 13px;
    border: 1px solid rgba(34, 197, 94, 0.24);
}
.list {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.list li {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
}
.list .title { font-weight: 700; display: block; margin-bottom: 4px; }
.list .meta { color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
    .hero,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .hero-copy,
    .auth-card,
    .dashboard-main,
    .dashboard-side { padding: 24px; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 20px, 1120px); }
    .hero-grid,
    .kpis { grid-template-columns: 1fr; }
    .topbar-inner { flex-direction: column; align-items: flex-start; }
    .nav-links { width: 100%; flex-wrap: wrap; }
    .nav-links a { padding: 8px 12px; }
}
