* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
}

body { 
    background-color: #090d16;
    min-height: 100vh;
}

.container { 
    display: flex; 
    min-height: 100vh; 
    width: 100vw; 
}

/* ================= LEFT PANEL (MOTION GRAPHIC) ================= */
.left-panel {
    flex: 1;
    background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.branding h1 {
    font-size: 2.2rem;
    color: #ff4444;
    letter-spacing: 1px;
}

/* Motion Graphic Container */
.motion-graphic-container {
    position: relative;
    width: 100%;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating Asset Cards */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.floating-card .icon {
    font-size: 1.6rem;
}

.floating-card strong {
    display: block;
    font-size: 0.95rem;
    color: #ffffff;
}

.trend.up {
    font-size: 0.8rem;
    color: #4ade80;
    font-weight: 600;
}

/* Individual Floating Animations */
.asset-btc {
    top: 10%;
    left: 10%;
    animation: floatSlow 6s ease-in-out infinite;
}

.asset-gold {
    top: 40%;
    right: 5%;
    animation: floatFast 5s ease-in-out infinite alternate;
}

.asset-nasdaq {
    bottom: 5%;
    left: 20%;
    animation: floatMedium 7s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatFast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-2deg); }
}

@keyframes floatMedium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1.5deg); }
}

/* Left Footer & Carousel Bars */
.left-footer h2 {
    font-size: 1.8rem;
    font-weight: 700;
    max-width: 380px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
    width: 200px;
}

.carousel-indicators .bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.carousel-indicators .bar.active {
    background: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

/* ================= RIGHT PANEL (FORM) ================= */
.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: #ffffff;
}

.form-container { 
    width: 100%; 
    max-width: 400px; 
}

.form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #1e293b;
}

.subtitle {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

input:focus {
    border-color: #ff4444;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #e03838;
}

.login-link {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.login-link a {
    color: #ff4444;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ================= RESPONSIVE MOBILE STACK ================= */
@media (max-width: 768px) {
    .container { 
        flex-direction: column; 
        height: auto;
    }

    /* Compact Top Header Banner */
    .left-panel {
        padding: 20px;
        min-height: 220px; /* Much smaller height like a normal mobile app header */
        justify-content: space-between;
    }

    .branding h1 {
        font-size: 1.5rem;
    }

    /* Shrink motion graphics area for mobile */
    .motion-graphic-container {
        height: 80px; 
    }

    /* Make floating cards smaller and compact */
    .floating-card {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .floating-card .icon {
        font-size: 1.2rem;
    }

    .floating-card strong {
        font-size: 0.85rem;
    }

    .trend.up {
        font-size: 0.75rem;
    }

    /* Hide the long caption paragraph on mobile to save space */
    .left-footer h2, 
    .carousel-indicators {
        display: none; 
    }

    /* Form section directly below with smooth rounded top border */
    .right-panel {
        padding: 30px 20px;
        background: #ffffff;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        margin-top: -15px; 
        position: relative;
        z-index: 5;
    }
}