
        * { box-sizing: border-box; }

        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
            min-height: 100vh;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
        }

        .left-panel {
            background: linear-gradient(135deg, #9aa7d1, #55657e);
        }

        .video-box {
            width: 100%;
            height: 280px;
            background: #0f172a;
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        }

        #video, #canvas {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        #canvas { display: none; }

        .face-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 65%;
            height: 70%;
            border: 3px solid rgba(59, 130, 246, 0.8);
            border-radius: 50%;
            pointer-events: none;
            box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2);
        }

        .live-dot {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        .input-field {
            transition: all 0.3s ease;
        }

        .input-field:focus {
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
            border-color: #3b82f6;
        }
        /*  BUBBLE ANIMATION */
.bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.bubbles span {
    position: absolute;
    bottom: -120px;
    display: block;
    border-radius: 50%;

    /* MAIN VISIBILITY FIX */
    background: rgba(2, 4, 74, 0.966); /* stronger color */
    border: 1px solid rgba(255, 255, 255, 0.4); /* glass edge */

    /* Glow effect */
    box-shadow: 
        0 0 10px rgba(99, 102, 241, 0.5),
        0 0 20px rgba(99, 102, 241, 0.3);

    backdrop-filter: blur(2px); /* reduced blur */

    animation: floatUp linear infinite;
}

/* Different sizes + speeds */
.bubbles span:nth-child(1) {
    left: 10%;
    width: 40px; height: 40px;
    animation-duration: 12s;
}
.bubbles span:nth-child(2) {
    left: 25%;
    width: 20px; height: 20px;
    animation-duration: 10s;
}
.bubbles span:nth-child(3) {
    left: 40%;
    width: 60px; height: 60px;
    animation-duration: 18s;
}
.bubbles span:nth-child(4) {
    left: 55%;
    width: 25px; height: 25px;
    animation-duration: 9s;
}
.bubbles span:nth-child(5) {
    left: 70%;
    width: 50px; height: 50px;
    animation-duration: 14s;
}
.bubbles span:nth-child(6) {
    left: 85%;
    width: 30px; height: 30px;
    animation-duration: 11s;
}
.bubbles span:nth-child(7) {
    left: 15%;
    width: 35px; height: 35px;
    animation-duration: 13s;
}
.bubbles span:nth-child(8) {
    left: 65%;
    width: 18px; height: 18px;
    animation-duration: 8s;
}
.bubbles span:nth-child(9) {
    left: 80%;
    width: 45px; height: 45px;
    animation-duration: 16s;
}
.bubbles span:nth-child(10) {
    left: 30%;
    width: 22px; height: 22px;
    animation-duration: 9s;
}
/* Floating animation */
@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-900px) scale(1.2);
        opacity: 0;
    }
}
/* FIX: keep text color consistent in desktop */
.input-field,
.input-field:focus,
.input-field:active {
    color: #0f172a !important;   /* dark text */
}

/* FIX: override browser autofill (Chrome) */
input:-webkit-autofill {
    -webkit-text-fill-color: #0f172a !important;
    transition: background-color 5000s ease-in-out 0s;
}
/*at 125% level , slight scroll and at 150% level - mobile response*/
.max-w-4xl {
    max-height: none;
    overflow-y: auto;

    margin: 0 auto;        /* keep only this */
    width: 100%;
    max-width: 1024px;     /* slightly stable width */
}body {
    overflow-x: hidden;
}

html, body {
    width: 100%;
}

/*  MOBILE UI FIX (does NOT affect desktop) */
@media (max-width: 800px) {

    /* SAME BACKGROUND EVERYWHERE */
    body {
        padding: 16px;
        background: linear-gradient(135deg, #9aa7d1, #55657e);
    }

    .max-w-4xl {
        background: transparent !important;   /*  remove second layer */
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    .right-panel {
        background: transparent !important;
    }

    .left-panel {
        display: none;
        background: transparent !important;
    }
    

    

    form {
        flex-direction: column !important;
    }

    .mobile-card {
        background: transparent;
        border-radius: 24px;
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .video-box {
        height: 200px;
        border-radius: 16px;
    }

    .input-field,
    input[type="password"] {
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        color: #1e293b !important;
        border-radius: 14px !important;
        padding: 14px !important;
    }

    label {
        color: #233145 !important;
        font-weight: 500;
    }

    h2 {
        text-align: center;
        color: #334155 !important;
    }

    #loginBtn {
        border-radius: 16px;
        font-size: 16px;
        padding: 14px;
    }

    #captureBtn,
    #recaptureBtn {
        border-radius: 14px;
        padding: 12px;
        font-size: 14px;
    }

    .bubbles {
        display: none; /* cleaner mobile UI */
    }
    .max-w-4xl {
        width: 100%;
        max-width: 900px; /* slightly tighter for zoom stability */
    }
}



/*  DESKTOP INPUT FIX */
@media (min-width: 801px) {
    .input-field {
        background: #ffffff !important;   /* white background */
        color: #0f172a !important;        /* dark text */
        border: 1px solid #e2e8f0 !important;
    }

    .input-field::placeholder {
        color: #64748b; /* subtle gray placeholder */
    }
     #togglePassword {
        color: #475569 !important; /* slate-600 */
    }

    #togglePassword:hover {
        color: #1e293b !important; /* darker on hover */
    }
}

/* Disabled state */
.btn-disabled {
    opacity: 0.5;
    pointer-events: none; /* prevents clicking */
    cursor: not-allowed;
}