body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top left, rgba(23, 62, 102, 0.35), transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(94, 234, 212, 0.2), transparent 55%),
        #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-page {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 40px;
    padding: 60px 8vw;
    align-items: center;
    min-height: 100vh;
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeUp 0.8s ease;
    max-width: 640px;
}

.hero-top h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin: 12px 0;
    color: #f8fafc;
}

.hero-top p {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5f5;
    max-width: 520px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.invite-btn {
    text-decoration: none;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.invite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.45);
}

.ghost-link {
    color: #cbd5f5;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border 0.2s ease;
}

.ghost-link:hover {
    border-color: #cbd5f5;
}

.hero-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 18px 20px;
    max-width: 520px;
    backdrop-filter: blur(12px);
}

.hero-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #f8fafc;
}

.hero-card ul {
    margin: 0;
    padding-left: 18px;
    line-height: 1.6;
    color: #cbd5f5;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    max-width: 560px;
}

.stat-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 16px;
    text-align: left;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card.alt {
    background: rgba(30, 41, 59, 0.6);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    margin-top: 6px;
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
}

.stat-note {
    font-size: 12px;
    color: #94a3b8;
}

.login-panel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 32px 26px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
    animation: fadeUp 1s ease;
}

.login-card img {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 16px;
}

.login-card h2 {
    margin: 0 0 8px;
    color: #f8fafc;
}

.login-card p {
    margin: 0 0 20px;
    color: #94a3b8;
    font-size: 14px;
}

.login-card .button.x {
    width: 100%;
    justify-content: center;
}

.login-links {
    margin-top: 16px;
}

.login-links a {
    color: #cbd5f5;
    font-size: 13px;
    text-decoration: underline;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .login-page {
        grid-template-columns: 1fr;
        padding: 40px 8vw 60px;
    }

    .login-panel {
        order: -1;
        width: 100%;
    }

    .login-hero {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .login-page {
        padding: 30px 6vw 50px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .login-card {
        padding: 26px 20px;
    }

    .hero-top h1 {
        font-size: 28px;
    }
}

@media (max-width: 420px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
