@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #030014;
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(219, 39, 119, 0.15) 0px, transparent 50%);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Animated glowing orbs in background */
body::before, body::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    animation: floatOrb 25s infinite alternate ease-in-out;
}

body::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    top: -20%;
    left: -10%;
}

body::after {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -12s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 120px) scale(1.1); }
}

/* Main Layout */
.main-container {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    z-index: 10;
    perspective: 1200px;
}

.container {
    display: flex;
    width: 1100px;
    max-width: 100%;
    background: rgba(20, 20, 28, 0.65);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: popupFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: center;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95) rotateX(8deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.left-side {
    flex: 1.15;
    position: relative;
    background: url('assets/images/games_on_web.png') no-repeat center;
    background-size: cover;
    min-height: 650px;
}

/* Stylish overlays for the image to blend perfectly */
.left-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 0, 20, 0.35) 0%, rgba(3, 0, 20, 0.85) 100%);
}

.left-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 0%, rgba(20, 20, 28, 0.65) 100%);
}

.right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 70px;
    background: rgba(255, 255, 255, 0.015);
}

.right-side h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.right-side > p {
    margin-bottom: 50px;
    color: #94a3b8;
    font-size: 1.2rem;
    font-weight: 300;
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.input-group {
    margin-bottom: 25px;
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    position: relative;
}

.input-group:nth-child(2) {
    animation-delay: 0.5s;
}

.input-group input {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    color: #f8fafc;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input::placeholder {
    color: #475569;
    transition: color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.7);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.input-group input:focus::placeholder {
    color: #64748b;
}

.login-btn {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: #fff;
    padding: 20px;
    border: none;
    width: 100%;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 25px;
    box-shadow: 0 15px 35px -10px rgba(236, 72, 153, 0.5);
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
}

.login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 45px -10px rgba(236, 72, 153, 0.7);
    background: linear-gradient(135deg, #4f46e5 0%, #db2777 100%);
}

.login-btn:hover::after {
    left: 150%;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 10px 25px -10px rgba(236, 72, 153, 0.4);
}

.bottom-links {
    text-align: center;
    margin-top: 45px;
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
    opacity: 0;
}

.bottom-links p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 12px;
}

.bottom-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 6px;
    position: relative;
    padding-bottom: 2px;
}

.bottom-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #818cf8, #f472b6);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-links a:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(244, 114, 182, 0.6);
}

.bottom-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Responsive adjustment */
@media (max-width: 960px) {
    .container {
        flex-direction: column;
        width: 100%;
        max-width: 550px;
        border-radius: 28px;
    }

    .left-side {
        min-height: 280px;
        flex: none;
        border-radius: 28px 28px 0 0;
    }
    
    .left-side::after {
        background: linear-gradient(to bottom, transparent 0%, rgba(20, 20, 28, 0.65) 100%);
    }

    .right-side {
        padding: 50px 40px;
    }
    
    .right-side h2 {
        font-size: 2.6rem;
    }
    
    body::before, body::after {
        width: 150vw;
        height: 150vw;
    }
}