        :root {
            --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --bg-light: #f8f9fa;
            --color-orange: #ff7f41;
            --color-purple: #5c30ad;
            --color-black: #2d3748;
            --color-yellow: #fdd835;
            --eye-white: #fff;
            --pupil: #222;
            --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
            --success-green: #48bb78;
            --error-red: #e53e3e;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg-gradient);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        /* Animated background particles */
        body::before {
            content: '';
            position: absolute;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: backgroundScroll 20s linear infinite;
            opacity: 0.3;
        }

        @keyframes backgroundScroll {
            0% { transform: translate(0, 0); }
            100% { transform: translate(50px, 50px); }
        }
/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}
        .container {
            display: flex;
            width: 900px;
            max-width: 100%;
            min-height: 600px;
            background-color: #fff;
            border-radius: 24px;
            box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1);
            overflow: hidden;
            position: relative;
            z-index: 1;
            backdrop-filter: blur(10px);
        }

        /* Glassmorphism effect overlay */
        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
        }

        /* --- Left Side (Characters) --- */
        .l-side {
            flex: 1;
            background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding: 40px;
        }

        /* Decorative circles in background */
        .l-side::before,
        .l-side::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            opacity: 0.1;
        }

        .l-side::before {
            width: 300px;
            height: 300px;
            background: var(--color-purple);
            top: -100px;
            left: -100px;
        }

        .l-side::after {
            width: 200px;
            height: 200px;
            background: var(--color-orange);
            bottom: -50px;
            right: -50px;
        }

        /* Character Base Styles */
        .character {
            position: absolute;
            border-radius: 12px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .character:hover {
            transform: scale(1.05);
        }

        /* 1. Orange Character */
        .orange {
            width: 240px;
            height: 120px;
            background: linear-gradient(135deg, var(--color-orange) 0%, #ff9a6c 100%);
            border-radius: 120px 120px 0 0;
            bottom: 25vh;
            left: 20px;
            z-index: 5;
            animation: float 3s ease-in-out infinite;
            box-shadow: 0 15px 30px rgba(255, 127, 65, 0.3);
        }

        /* 2. Purple Character */
        .purple {
            width: 140px;
            height: 280px;
            background: linear-gradient(135deg, var(--color-purple) 0%, #7c4dbd 100%);
            bottom: 25vh;
            left: 130px;
            z-index: 3;
            animation: float 3.5s ease-in-out infinite 0.5s;
            box-shadow: 0 15px 30px rgba(92, 48, 173, 0.3);
        }

        /* 3. Black Character */
        .black {
            width: 120px;
            height: 240px;
            background: linear-gradient(135deg, var(--color-black) 0%, #4a5568 100%);
            bottom: 25vh;
            left: 240px;
            z-index: 2;
            animation: float 3.2s ease-in-out infinite 1s;
            box-shadow: 0 15px 30px rgba(45, 55, 72, 0.3);
        }

        /* 4. Yellow Character */
        .yellow {
            width: 110px;
            height: 140px;
            background: linear-gradient(135deg, var(--color-yellow) 0%, #ffeb3b 100%);
            bottom: 25vh;
            right: 50px;
            clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 20%);
            z-index: 5;
            animation: float 2.8s ease-in-out infinite 1.5s;
            box-shadow: 0 15px 30px rgba(253, 216, 53, 0.3);
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        /* --- FACE ELEMENTS --- */
        .eyes {
            position: absolute;
            display: flex;
            gap: 10px;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
        }

        .eye {
            width: 18px;
            height: 18px;
            background-color: var(--eye-white);
            border-radius: 50%;
            position: relative;
            overflow: hidden;
            transition: all 0.2s ease;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
        }

        .pupil {
            width: 8px;
            height: 8px;
            background-color: var(--pupil);
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: transform 0.1s ease;
        }

        /* Add shine to pupils */
        .pupil::after {
            content: '';
            position: absolute;
            width: 3px;
            height: 3px;
            background: rgba(255,255,255,0.8);
            border-radius: 50%;
            top: 1px;
            left: 1px;
        }

        /* Default Mouth Style */
        .mouth {
            position: absolute;
            width: 30px;
            height: 15px;
            border: 3px solid rgba(0,0,0,0.6);
            border-radius: 0 0 15px 15px;
            border-top: none;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            transition: all 0.3s ease;
        }

        /* Mouth overrides for dark characters */
        .purple .mouth {
            bottom: auto;
            top: 75px;
            border-color: rgba(255, 255, 255, 0.7);
        }

        .purple .mouth.confused,
        .black .mouth.confused {
            background-color: rgba(255, 255, 255, 0.7);
            border: none;
        }

        /* Yellow mouth style */
        .yellow .mouth {
            width: 40px;
            height: 4px;
            background: rgba(0,0,0,0.6);
            border: none;
            border-radius: 2px;
            bottom: 35px;
        }

        /* --- EXPRESSIONS --- */
        .eye.excited { 
            width: 24px; 
            height: 24px;
            animation: sparkle 0.5s ease;
        }

        @keyframes sparkle {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }
        
        .eye.confused { width: 14px; height: 18px; }
        .mouth.confused {
            height: 4px;
            border: none;
            background-color: rgba(0,0,0,0.6);
            border-radius: 2px;
            transform: translateX(-50%) rotate(-10deg);
        }

        .mouth.happy {
            height: 20px;
            width: 35px;
            border-radius: 0 0 20px 20px;
            animation: smile 0.3s ease;
        }

        @keyframes smile {
            0% { transform: translateX(-50%) scaleX(0.8); }
            100% { transform: translateX(-50%) scaleX(1); }
        }

        .eye.closed {
            height: 3px;
            border-radius: 2px;
            background-color: var(--color-black);
            margin-top: 8px;
            box-shadow: none;
        }
        .eye.closed .pupil { display: none; }
        
        .mouth.shy {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: 3px solid rgba(0,0,0,0.6);
            border-bottom: none;
        }
        
        .purple .mouth.shy, .black .mouth.shy {
            border-color: rgba(255, 255, 255, 0.7);
            border-bottom: none;
        }

        .eye.curious {
    width: 20px;
    height: 22px;
    animation: blink 3s ease-in-out infinite;
}

@keyframes blink {
    0%, 49%, 51%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

.mouth.surprised {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(0,0,0,0.6);
}

.purple .mouth.surprised,
.black .mouth.surprised {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Look Away Expression - Funny "Not Interested" */

/* Eyes look far to the left */
.eye.lookaway .pupil {
    transform: translate(calc(-50% - 8px), -50%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Eyes themselves shift and rotate left MORE */
.eye.lookaway {
    transform: translateX(-5px) rotate(-8deg) scaleX(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mouth shifts MORE to the left and becomes neutral/bored */
.mouth.lookaway {
    width: 16px;
    height: 2px;
    border: none;
    background-color: rgba(0,0,0,0.6);
    border-radius: 2px;
    transform: translateX(-75%) rotate(-3deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.purple .mouth.lookaway,
.black .mouth.lookaway {
    background-color: rgba(255, 255, 255, 0.7);
    transform: translateX(-75%) rotate(-3deg);
}

.yellow .mouth.lookaway {
    transform: translateX(-75%) rotate(-3deg);
}

/* Character body turns left */
.character.lookaway {
    transform: rotate(-8deg) translateX(-15px) scale(0.98);
    transform-origin: center bottom;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-play-state: paused;
}

/* Add 3D perspective effect */
.orange.lookaway {
    transform: rotate(-8deg) translateX(-15px) scale(0.98) perspective(500px) rotateY(-15deg);
}

.purple.lookaway {
    transform: rotate(-8deg) translateX(-20px) scale(0.98) perspective(500px) rotateY(-12deg);
}

.black.lookaway {
    transform: rotate(-8deg) translateX(-18px) scale(0.98) perspective(500px) rotateY(-10deg);
}

.yellow.lookaway {
    transform: rotate(-8deg) translateX(-12px) scale(0.98) perspective(500px) rotateY(-18deg);
}

/* Add embarrassed blush on the visible side */
.orange.lookaway::before,
.yellow.lookaway::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 10px;
    background: radial-gradient(circle, rgba(255, 120, 120, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 45px;
    left: 25%;
    animation: fadeBlush 0.4s ease-in;
    z-index: 10;
}

.purple.lookaway::before,
.black.lookaway::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 10px;
    background: radial-gradient(circle, rgba(255, 150, 150, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: 120px;
    left: 25%;
    animation: fadeBlush 0.4s ease-in;
    z-index: 10;
}

@keyframes fadeBlush {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

/* Eyes container also shifts MORE to the left */
.lookaway .eyes {
    transform: translateX(-55%) translateX(-8px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Afraid Expression - Nervous & Scared (For Errors) */

/* Remove lookaway pseudo-elements when afraid is active */
.character.afraid::before,
.character.afraid::after {
    display: none !important;
}

/* Eyes wide open in fear */
.eye.afraid {
    width: 22px !important;
    height: 22px !important;
    animation: shakeEye 0.15s ease-in-out infinite !important;
    transform: none !important;
}

@keyframes shakeEye {
    0%, 100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-1px) rotate(-1deg); }
    75% { transform: translateX(1px) rotate(1deg); }
}

/* Pupils look around nervously */
.eye.afraid .pupil {
    animation: nervousLook 0.5s ease-in-out infinite !important;
    transform: translate(-50%, -50%) !important;
}

@keyframes nervousLook {
    0%, 100% { transform: translate(calc(-50% - 3px), calc(-50% + 2px)) !important; }
    50% { transform: translate(calc(-50% + 3px), calc(-50% + 2px)) !important; }
}

/* Mouth becomes wavy/nervous */
.mouth.afraid {
    width: 30px !important;
    height: 3px !important;
    border: none !important;
    background-color: rgba(0,0,0,0.6) !important;
    border-radius: 2px !important;
    transform: translateX(-50%) !important;
    animation: wavyMouth 0.3s ease-in-out infinite !important;
}

@keyframes wavyMouth {
    0%, 100% { transform: translateX(-50%) scaleX(1); }
    50% { transform: translateX(-50%) scaleX(0.9) translateY(1px); }
}

.purple .mouth.afraid,
.black .mouth.afraid {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

/* Characters tremble in fear - Override float animation */
.character.afraid {
    animation: tremble 0.12s ease-in-out infinite !important;
    transform: translateX(0) translateY(0) rotate(0) !important;
    transform-origin: center bottom !important;
}

@keyframes tremble {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateX(-3px) translateY(-2px) rotate(-1.5deg) scale(0.99); 
    }
    50% { 
        transform: translateX(0) translateY(0) rotate(0deg) scale(1); 
    }
    75% { 
        transform: translateX(3px) translateY(-2px) rotate(1.5deg) scale(0.99); 
    }
}

/* Add nervous sweat effect using filter and extra shadows */
.character.afraid {
    filter: brightness(0.92) contrast(1.08) !important;
}

.orange.afraid {
    box-shadow: 0 15px 30px rgba(255, 127, 65, 0.4), 
                inset 0 0 20px rgba(100, 150, 255, 0.2) !important;
}

.purple.afraid {
    box-shadow: 0 15px 30px rgba(92, 48, 173, 0.4),
                inset 0 0 20px rgba(100, 150, 255, 0.2) !important;
}

.black.afraid {
    box-shadow: 0 15px 30px rgba(45, 55, 72, 0.4),
                inset 0 0 20px rgba(100, 150, 255, 0.2) !important;
}

.yellow.afraid {
    box-shadow: 0 15px 30px rgba(253, 216, 53, 0.4),
                inset 0 0 20px rgba(100, 150, 255, 0.2) !important;
}
/* Reset eyes position for afraid */
.afraid .eyes {
    transform: translateX(-50%) !important;
    transition: none !important;
}



        /* --- FORM SIDE --- */
        
        .r-side {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

    
        .r-side h2 { 
    margin-bottom: 6px; 
    color: var(--color-black);
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.r-side p { 
    color: #718096; 
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 400;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.input-group { 
    position: relative; 
    margin-bottom: 10px;
}
/* Tighter spacing for signup form */
#signup-form-container .input-group {
    margin-bottom: 1px;
}

#signup-form-container .input-label {
    margin-bottom: 4px;
}

#signup-form-container input {
    padding: 8px 8px;
}

#signup-form-container .btn-submit {
    margin-top: 2px;
    margin-bottom: 4px;
}

#signup-form-container .signup-prompt {
    margin-top: 2px;
    padding-top: 1px;
}
/* Hide password strength for confirm password field */
#signup-confirm-password + .password-toggle + .password-strength {
    display: none;
}
/* Ensure password input group has proper positioning context */
.input-group:has(#password-field) {
    position: relative;
}
        .input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}
        
     input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    color: #2d3748;
    font-weight: 400;
}

input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}
        input:focus {
            outline: none;
            border-color: #667eea;
            background-color: #fff;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
            transform: translateY(-1px);
        }

        input:focus + .input-label {
            color: #667eea;
        }

        /* Validation styles */
        input.valid {
            border-color: var(--success-green);
            background-color: #f0fff4;
        }

        input.invalid {
            border-color: var(--error-red);
            background-color: #fff5f5;
            animation: shake 0.4s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        .validation-message {
            font-size: 12px;
            margin-top: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
            opacity: 0;
            transform: translateY(-5px);
            transition: all 0.3s ease;
        }

        .validation-message.show {
            opacity: 1;
            transform: translateY(0);
        }

        .validation-message.error {
            color: var(--error-red);
        }

        .validation-message.success {
            color: var(--success-green);
        }

        .validation-message i {
            width: 14px;
            height: 14px;
        }

        /* Password Toggle Icon */
       .password-toggle {
    position: absolute;
    right: 15px;
    top: 45%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 10;
}
        .password-toggle:hover { 
            color: #667eea;
            background: rgba(102, 126, 234, 0.1);
        }
#password-field {
    padding-right: 50px; /* Make room for the toggle icon */
}
        /* Password strength indicator */
        .password-strength {
            height: 4px;
            background: #e2e8f0;
            border-radius: 2px;
            margin-top: 8px;
            overflow: hidden;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .password-strength.show {
            opacity: 1;
        }

        .password-strength-bar {
            height: 100%;
            width: 0;
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .password-strength-bar.weak {
            width: 33%;
            background: var(--error-red);
        }

        .password-strength-bar.medium {
            width: 66%;
            background: var(--color-yellow);
        }

        .password-strength-bar.strong {
            width: 100%;
            background: var(--success-green);
        }

      button:not(.password-toggle) {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

        button:not(.password-toggle)::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255,255,255,0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        button:not(.password-toggle):active::before {
            width: 300px;
            height: 300px;
        }

      .btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    margin-top: 8px;
}

.btn-submit:hover { 
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.45);
}

        .btn-submit:active {
            transform: translateY(0);
        }

        .btn-submit:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
.google-login {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: var(--color-black);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    font-weight: 600;
}

.google-login:hover { 
    background: #f8f9fa;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.btn-submit {
    margin-bottom: 24px;
}

.google-login::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}
        .forgot-password {
            text-align: center;
            margin-top: 15px;
        }

        .forgot-password a {
            color: #667eea;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .forgot-password a:hover {
            color: #764ba2;
            text-decoration: underline;
        }
     .signup-prompt {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 15px;
    font-weight: 400;
}

.signup-prompt a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-prompt a:hover {
    color: #764ba2;
    text-decoration: underline;
}

        /* Loading spinner */
        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-left: 8px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

      

        /* Form Container Transitions */
.form-container {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.form-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: all;
    position: relative;
}

.form-container.exit-left {
    transform: translateX(-30px);
    opacity: 0;
}
/* Mobile Responsive */
@media (max-width: 768px) {
    html, body {
        height: 100%;
        overflow: hidden;
    }
    
    body {
        padding: 0;
    }
    
    body::before {
        display: none;
    }
    
    .container { 
        flex-direction: column; 
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
        display: flex;
    }
    
    /* Fixed character section at top - doesn't scroll */
    .l-side { 
        position: relative;
        width: 100%;
        height: 220px;
        min-height: 220px;
        max-height: 220px;
        flex-shrink: 0;
        padding: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 0;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 10;
    }
    
    .l-side::before,
    .l-side::after {
        opacity: 0.08;
    }
    
    /* Group characters together in center BOTTOM */
    .character {
        position: absolute;
        left: 50%;
        bottom: 10px;
        transform-origin: bottom center;
    }
    
    /* Position characters as a centered group at BOTTOM */
    .orange {
        width: 180px;
        height: 90px;
        bottom: 10px;
        margin-left: -105px;
        z-index: 5;
        transform: scale(1);
    }
    
    .purple {
        width: 105px;
        height: 210px;
        bottom: 10px;
        margin-left: -37.5px;
        z-index: 3;
        transform: scale(1);
    }
    
    .black {
        width: 90px;
        height: 180px;
        bottom: 10px;
        margin-left: 26.25px;
        z-index: 2;
        transform: scale(1);
    }
    
    .yellow {
        width: 82.5px;
        height: 105px;
        bottom: 10px;
        margin-left: 90px;
        z-index: 5;
        transform: scale(1);
    }
    
    /* Scrollable form section - ONLY THIS SCROLLS */
    .r-side { 
        flex: 1;
        height: calc(100vh - 220px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        position: relative;
        width: 100%;
        background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    }
    
    /* Form container adjustments */
    .form-container {
        max-width: 100%;
        width: 100%;
         padding: 230px 20px 30px;
    }
      /* Ensure forms start with proper spacing */
    #login-form-container,
    #signup-form-container
     {
        padding
        : 230px 20px 30px;
    }
     
    #forgot-form-container {
        padding
        : 30px 20px 30px;
    }
    
    /* Typography adjustments */
    .r-side h2 {
        font-size: 24px;
        margin-bottom: 8px;
        letter-spacing: -0.3px;
        margin-top: 0;
        padding-top: 0;
    }
  
    
    .r-side p {
        font-size: 13px;
        margin-bottom: 20px;
        color: #64748b;
    }
    
    /* Input groups - better spacing */
    .input-group {
        margin-bottom: 16px;
    }
    
    /* Tighter spacing for signup form */
    #signup-form-container .input-group {
        margin-bottom: 12px;
    }
    
    #signup-form-container .input-label {
        margin-bottom: 6px;
    }
    
    /* Labels */
    .input-label {
        font-size: 13px;
        margin-bottom: 6px;
        font-weight: 600;
    }
    
    /* Inputs */
    input {
        padding: 13px 16px;
        font-size: 15px;
        border-radius: 12px;
        border-width: 1.5px;
    }
    
    input:focus {
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
    
    /* Password toggle button */
    .password-toggle {
        right: 12px;
        top: 40%;
    }
    
    #password-field,
    #signup-password,
    #signup-confirm-password {
        padding-right: 45px;
    }
    
    /* Password strength indicator */
    .password-strength {
        height: 3px;
        margin-top: 6px;
    }
    
    /* Validation messages */
    .validation-message {
        font-size: 11px;
        margin-top: 5px;
    }
    
    .validation-message i {
        width: 12px;
        height: 12px;
    }
    
    /* Buttons */
    button:not(.password-toggle) {
        padding: 13px 16px;
        font-size: 15px;
        border-radius: 12px;
        font-weight: 600;
    }
    
    .btn-submit {
        margin-top: 12px;
        margin-bottom: 16px;
        padding: 14px 16px;
    }
    
    /* Google login button */
    .google-login {
        margin-bottom: 16px;
    }
    
    /* Forgot password link */
    .forgot-password {
        margin-top: 12px;
        margin-bottom: 0;
    }
    
    .forgot-password a {
        font-size: 13px;
    }
    
    /* Signup prompt */
    .signup-prompt {
        margin-top: 20px;
        padding-top: 20px;
        font-size: 14px;
    }
    
    /* Tighter spacing for signup */
    #signup-form-container .btn-submit {
        margin-top: 8px;
        margin-bottom: 12px;
    }
    
    #signup-form-container .signup-prompt {
        margin-top: 16px;
        padding-top: 16px;
    }
    
    /* Remove excess spacing on confirm password */
    #signup-confirm-password + .password-toggle + .password-strength {
        display: none;
    }
    
    /* Keep float animation active on mobile */
    .orange {
        animation: floatMobile 3s ease-in-out infinite;
    }
    
    .purple {
        animation: floatMobile 3.5s ease-in-out infinite 0.5s;
    }
    
    .black {
        animation: floatMobile 3.2s ease-in-out infinite 1s;
    }
    
    .yellow {
        animation: floatMobile 2.8s ease-in-out infinite 1.5s;
    }
    
    @keyframes floatMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }
    
    /* Keep character expressions working on mobile */
    .character.lookaway {
        transform: rotate(-8deg) translateX(-10px) scale(0.9) perspective(500px) rotateY(-15deg);
    }
    
    .character.afraid {
        animation: trembleMobile 0.12s ease-in-out infinite !important;
    }
    
    @keyframes trembleMobile {
        0%, 100% { 
            transform: translateX(0) translateY(0) rotate(0deg); 
        }
        25% { 
            transform: translateX(-2px) translateY(-1px) rotate(-1deg); 
        }
        50% { 
            transform: translateX(0) translateY(0) rotate(0deg); 
        }
        75% { 
            transform: translateX(2px) translateY(-1px) rotate(1deg); 
        }
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .l-side {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }
    
    .r-side {
        height: calc(100vh - 200px);
        padding: 0;
    }
     /* Add padding to form containers */
    .form-container {
        padding: 125px 16px 25px;
    }
    
    #login-form-container,
    #signup-form-container {
        padding: 155px 16px 25px;
    }
    
    #forgot-form-container {
        padding: 15px 16px 25px;
    }
    
    /* Smaller characters for small screens */
    .orange {
        width: 150px;
        height: 75px;
        bottom: 8px;
        margin-left: -87.5px;
    }
    
    .purple {
        width: 87.5px;
        height: 175px;
        bottom: 8px;
        margin-left: -31.25px;
    }
    
    .black {
        width: 75px;
        height: 150px;
        bottom: 8px;
        margin-left: 21.875px;
    }
    
    .yellow {
        width: 68.75px;
        height: 87.5px;
        bottom: 8px;
        margin-left: 75px;
    }
    
    .r-side h2 {
        font-size: 22px;
        margin-bottom: 6px;
        margin-top: 0;
    }
    
    .r-side p {
        font-size: 12px;
        margin-bottom: 18px;
    }
    
    .input-group {
        margin-bottom: 14px;
    }
    
    #signup-form-container .input-group {
        margin-bottom: 10px;
    }
    
    .input-label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    input {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 11px;
    }
    
    button:not(.password-toggle) {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 11px;
    }
    
    .btn-submit {
        margin-top: 10px;
        margin-bottom: 14px;
        padding: 13px 14px;
    }
    
    .google-login {
        margin-bottom: 14px;
    }
    
    .forgot-password {
        margin-top: 10px;
    }
    
    .forgot-password a {
        font-size: 12px;
    }
    
    .signup-prompt {
        margin-top: 18px;
        padding-top: 18px;
        font-size: 13px;
    }
    
    #signup-form-container .btn-submit {
        margin-top: 6px;
        margin-bottom: 10px;
    }
    
    #signup-form-container .signup-prompt {
        margin-top: 14px;
        padding-top: 14px;
    }
    
    .validation-message {
        font-size: 10px;
    }
    
    .password-toggle {
        right: 10px;
    }
    
    #password-field,
    #signup-password,
    #signup-confirm-password {
        padding-right: 42px;
    }
    
    @keyframes floatMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
    }
    
    .character.lookaway {
        transform: rotate(-8deg) translateX(-8px) scale(0.9) perspective(500px) rotateY(-15deg);
    }
}

/* Landscape mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .l-side {
        height: 140px;
        min-height: 140px;
        max-height: 140px;
    }
    
    .r-side {
        height: calc(100vh - 140px);
        padding: 0;
    }
    
    .orange {
        width: 120px;
        height: 60px;
        bottom: 5px;
        margin-left: -70px;
    }
    
    .purple {
        width: 70px;
        height: 140px;
        bottom: 5px;
        margin-left: -25px;
    }
    
    .black {
        width: 60px;
        height: 120px;
        bottom: 5px;
        margin-left: 17.5px;
    }
    
    .yellow {
        width: 55px;
        height: 70px;
        bottom: 5px;
        margin-left: 60px;
    }
     /* Add padding to form containers */
    .form-container {
        padding: 230px 20px 20px;
    }
    
    #login-form-container,
    #signup-form-container,
    #forgot-form-container {
        padding: 20px 20px 20px;
    }
    
    .r-side h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .r-side p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    #signup-form-container .input-group {
        margin-bottom: 8px;
    }
    
    .input-label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    button:not(.password-toggle) {
        padding: 11px 14px;
        font-size: 14px;
    }
    
    .btn-submit {
        margin-top: 8px;
        margin-bottom: 12px;
    }
    
    .signup-prompt {
        margin-top: 15px;
        padding-top: 15px;
        font-size: 13px;
    }
    
    @keyframes floatMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-4px); }
    }
}
