
/* --- Split Layout Styles for Login/Register/Forgot (V2 Improved) --- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif !important;
}

.split-layout-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: #f8fafc;
    overflow: hidden;
}

/* Left Side - Slideshow */
.split-slideshow {
    width: 50%;
    position: relative;
    background-color: #0f172a; /* Slate 900 */
    overflow: hidden;
}

.split-slideshow .swiper {
    width: 100%;
    height: 100%;
}

.split-slideshow .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.split-slideshow .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.swiper-slide-active .slide-bg {
    transform: scale(1);
    animation: panZoom 15s infinite alternate;
}

@keyframes panZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Overlay for text readability */
.split-slideshow .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.split-slideshow .slide-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    color: #fff;
    max-width: 600px;
}

.split-slideshow h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.split-slideshow p {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
    font-weight: 300;
}

/* Right Side - Form */
.split-form {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #ffffff;
    position: relative;
}

.form-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    background: #ffffff;
    border-radius: 24px;
    /* Optional: Box shadow for "card" effect even on white bg */
    /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05); */
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header .logo img {
    height: 60px;
    margin-bottom: 24px;
}

.form-header h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.form-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Enhanced Inputs */
.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-control {
    width: 100%;
    height: 56px;
    padding: 0 20px 0 50px; /* Padding left for icon */
    font-size: 16px;
    color: #334155;
    background-color: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: #eab308; /* Gold border */
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.1); /* Gold glow */
    outline: none;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    transition: color 0.3s ease;
}

.form-control:focus + .input-icon,
.form-group:focus-within .input-icon {
    color: #eab308; /* Gold icon on focus */
}

/* Enhanced Button */
.ibtn {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border: none;
    height: 56px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.ibtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.4);
}

.ibtn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.ibtn:hover::after {
    transform: translateX(100%);
}

/* Checkbox Styling */
.form-check-input:checked {
    background-color: #eab308;
    border-color: #eab308;
}

/* Links */
a {
    color: #eab308;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #ca8a04;
}

.text-muted {
    color: #64748b !important;
}

/* Swiper Pagination Customization */
.split-slideshow .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    opacity: 1;
    transition: all 0.3s ease;
}

.split-slideshow .swiper-pagination-bullet-active {
    background: #eab308; /* Gold */
    width: 36px;
    border-radius: 6px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .split-layout-container {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .split-slideshow {
        width: 100%;
        height: 35vh; /* Responsive height */
        min-height: 280px;
    }
    
    .split-slideshow .slide-content {
        padding: 30px;
        text-align: center;
    }
    
    .split-slideshow h2 {
        font-size: 2.25rem;
    }
    
    .split-form {
        width: 100%;
        padding: 30px 20px;
        min-height: 65vh; /* Fill remaining space */
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        margin-top: -30px; /* Overlap effect */
        z-index: 10;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    }
    
    .form-wrapper {
        padding: 20px 0;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .split-slideshow h2 {
        font-size: 1.75rem;
    }
    
    .form-header h3 {
        font-size: 1.75rem;
    }
    
    .form-control, .ibtn {
        height: 50px;
    }
}