/* ========================================
   BASE STYLES & GOOGLE FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', sans-serif; 
}

body { 
    background: #f3f4f6; 
    color: #111827; 
    overflow-x: hidden; 
}

/* Page Layout */
.authPage { 
    display: flex; 
    min-height: 100vh; 
    flex-direction: row; 
}

/* ========================================
   LEFT SIDE: CAROUSEL (Container name authRight)
   ======================================== */
.authRight { 
    flex: 1; 
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%); 
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 40px; 
}

.carouselWrap { 
    text-align: center; 
    max-width: 480px; 
    width: 100%; 
}

.cSlide { display: none; }
.cSlide.show { 
    display: block; 
    animation: fadeIn 0.5s ease forwards; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.slideTitle { 
    font-size: 30px; 
    margin-bottom: 16px; 
    font-weight: 700; 
    line-height: 1.3; 
    letter-spacing: -0.5px;
}

.slideDesc { 
    font-size: 16px; 
    color: #9ca3af; 
    line-height: 1.6; 
}

.cDots { 
    margin-top: 35px; 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
}

.cDot { 
    width: 8px; 
    height: 8px; 
    background: #4b5563; 
    border-radius: 50%; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.cDot.on { 
    background: #3b82f6; 
    width: 24px; 
    border-radius: 4px; 
}

/* ========================================
   RIGHT SIDE: FORMS (Container name authLeft)
   ======================================== */
.authLeft { 
    width: 100%; 
    max-width: 500px; /* Form width slightly increased for breathing space */
    background: white; 
    padding: 40px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    box-shadow: -10px 0 25px rgba(0,0,0,0.03); 
    z-index: 10; 
    overflow-y: auto; 
}

.authInner { 
    width: 100%; 
    max-width: 380px; 
    margin: 0 auto; 
}

/* Logo */
.logoWrap { margin-bottom: 30px; }
.logoText { 
    font-size: 26px; 
    font-weight: 800; 
    color: #111827; 
    letter-spacing: -0.5px; 
}
.logoText span { color: #3b82f6; }

/* Panels */
.panel { display: none; }
.panel.show { 
    display: block; 
    animation: fadeIn 0.4s ease forwards; 
}

.panelTitle { 
    font-size: 28px; 
    font-weight: 700; 
    margin-bottom: 8px; 
    letter-spacing: -0.5px; 
}

.panelSub { 
    color: #6b7280; 
    font-size: 15px; 
    margin-bottom: 24px; 
} 

/* ========================================
   INPUT FIELDS & GAPS
   ======================================== */
.field { 
    margin-bottom: 20px; 
    position: relative; 
} 

.twoCol { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
    margin-bottom: 20px; 
} 
.twoCol .field { margin-bottom: 0; }

.fieldLabel { 
    display: block; 
    font-size: 13px; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: #374151; 
} 

/* Premium Input Wrapping */
.inputWrap { 
    position: relative; 
    display: flex; 
    align-items: center; 
    width: 100%; 
}

.inputIcon { 
    position: absolute; 
    left: 14px; 
    width: 18px; 
    height: 18px; 
    color: #9ca3af; 
    pointer-events: none; 
    transition: color 0.2s; 
}

.inputField { 
    width: 100%; 
    padding: 13px 14px 13px 44px; 
    border: 1.5px solid #e5e7eb; 
    border-radius: 8px; 
    font-size: 14px; 
    background: #ffffff; 
    color: #111827; 
    transition: all 0.2s ease; 
    outline: none; 
} 

.inputField::placeholder { color: #9ca3af; }
.inputField:focus { 
    border-color: #3b82f6; 
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); 
}
.inputWrap:focus-within .inputIcon { color: #3b82f6; } 

/* Phone Input Special Styles */
.phonePrefix { 
    position: absolute; 
    left: 44px; 
    font-weight: 600; 
    color: #374151; 
    font-size: 14px; 
    pointer-events: none; 
}
.phonePrefix::after { 
    content: ''; 
    position: absolute; 
    right: -8px; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 1px; 
    height: 16px; 
    background: #d1d5db; 
}
.phoneInput { padding-left: 88px !important; }

/* Password Eye Button */
.eyeBtn { 
    position: absolute; 
    right: 8px; 
    background: none; 
    border: none; 
    color: #9ca3af; 
    cursor: pointer; 
    padding: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: color 0.2s; 
    border-radius: 6px; 
}
.eyeBtn:hover { 
    color: #4b5563; 
    background: #f3f4f6; 
}

/* Password Strength Indicator */
.strBar { display: flex; gap: 4px; margin-top: 8px; }
.strSeg { 
    height: 4px; 
    flex: 1; 
    background: #e5e7eb; 
    border-radius: 2px; 
    transition: 0.3s; 
}
.strSeg.s1 { background: #ef4444; } 
.strSeg.s2 { background: #f59e0b; } 
.strSeg.s3 { background: #3b82f6; } 
.strSeg.s4 { background: #10b981; } 
.strHint { 
    font-size: 12px; 
    margin-top: 6px; 
    font-weight: 500; 
    transition: color 0.3s; 
} 

/* Error Messages */
.errMsg { 
    display: none; 
    font-size: 12px; 
    color: #ef4444; 
    margin-top: 6px; 
    font-weight: 500; 
}
.errMsg:not(:empty) { display: block; } 

.errTop { 
    display: none; 
    color: #ef4444; 
    font-size: 14px; 
    margin-bottom: 20px; 
    text-align: center; 
    font-weight: 500; 
    background: #fef2f2; 
    padding: 12px; 
    border-radius: 8px; 
    border: 1px solid #fecaca; 
}
.errTop:not(:empty) { display: block; }

/* Submit Buttons */
.submitBtn { 
    width: 100%; 
    padding: 14px; 
    background: #3b82f6; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 15px; 
    font-weight: 600; 
    cursor: pointer; 
    margin-top: 10px; 
    transition: all 0.2s; 
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2); 
}
.submitBtn:hover { 
    background: #2563eb; 
    transform: translateY(-1px); 
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.3); 
}
.submitBtn:active { transform: translateY(0); }
.submitBtn:disabled { 
    background: #9ca3af; 
    cursor: not-allowed; 
    box-shadow: none; 
    transform: none; 
}

/* Bottom Switch Text */
.switchLine { 
    text-align: center; 
    margin-top: 24px; 
    font-size: 14px; 
    color: #6b7280; 
}
.switchBtn { 
    background: none; 
    border: none; 
    color: #3b82f6; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
    font-size: 14px; 
}
.switchBtn:hover { 
    text-decoration: underline; 
    color: #2563eb; 
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }


/* ========================================
   MOBILE RESPONSIVENESS (100% FIXED)
   ======================================== */
@media screen and (max-width: 768px) {
    /* 1. Page ko scrollable banaya */
    body .authPage { 
        display: flex !important;
        flex-direction: column !important; 
        height: auto !important; 
        min-height: 100vh !important;
        overflow-y: visible !important;
    }
    
    /* 2. FORM (authLeft) - Hamesha Top Pe Dikhaye (!important order -1) */
    body .authPage .authLeft { 
        order: -1 !important; 
        width: 100% !important;
        max-width: 100% !important;
        padding: 40px 20px !important;
        flex: none !important; 
        height: auto !important;
        background: #ffffff !important;
        overflow-y: visible !important;
    }

    /* 3. CAROUSEL (authRight) - Hamesha Form Ke Niche (!important order 99) */
    body .authPage .authRight { 
        order: 99 !important; 
        display: flex !important; 
        width: 100% !important;
        max-width: 100% !important;
        padding: 60px 20px !important; 
        min-height: 400px !important; 
        flex: none !important; 
        visibility: visible !important;
        opacity: 1 !important;
        overflow: hidden !important;
    }

    body .authPage .cSlide { width: 100% !important; }

    /* 4. Mobile par Stacked Inputs (First/Last name proper stack honge) */
    .twoCol { 
     grid-template-columns: 1fr 1fr !important;
        gap: 20px !important; 
        margin-bottom: 20px !important; 
    }
    .twoCol .field { margin-bottom: 0 !important; }
}