/* Filename: assets/css/aits_modern.css
   Theme: AITS College LMS - Professional Split Layout
   Version: 3.0 (Fixed Layout & Image Sizes)
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;       /* Royal Blue */
    --primary-dark: #1e40af;        /* Dark Blue */
    --accent-color: #3b82f6;        /* Light Blue */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    margin: 0;
    min-height: 100vh;
    color: var(--text-dark);
}

/* --- Main Layout Container --- */
.auth-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Dark Overlay on Background */
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8); /* Dark Blue Overlay */
    backdrop-filter: blur(8px);
    z-index: 1;
}

/* --- The Card (Split Screen) --- */
.auth-card-modern {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    display: flex; /* Flexbox is Key here */
    flex-direction: row; /* Side by Side layout */
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
}

/* --- LEFT SIDE: Visuals (Blue Area) --- */
.auth-visuals {
    flex: 1; /* Takes 50% width */
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Decorating Background Pattern */
.auth-visuals::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.1) 2%, transparent 0%), radial-gradient(circle at 75px 75px, rgba(255, 255, 255, 0.1) 2%, transparent 0%);
    background-size: 100px 100px;
    opacity: 0.5;
}

.visual-content {
    position: relative;
    z-index: 3;
    max-width: 400px;
}

/* IMAGE FIX: Restricting the size of the logo */
.visual-content img {
    width: 120px !important; /* Fixed width prevents giant images */
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.auth-visuals h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.auth-visuals p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* --- RIGHT SIDE: Form Area --- */
.auth-form-side {
    flex: 1.2; /* Takes slightly more than 50% width */
    padding: 60px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto; /* Scroll if content is too long */
}

/* Form Typography */
.auth-form-side h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.auth-header-mobile {
    display: none; /* Hidden on Desktop */
}

/* Inputs & Floating Labels */
.form-floating > .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    height: 55px;
    padding-left: 20px;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-floating > label {
    padding-left: 20px;
    color: var(--text-light);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 10px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
    background: #cbd5e1;
    transform: none;
}

/* Profile Image Upload Preview (Register Page) */
.profile-upload-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.profile-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f5f9;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Footer & Hotline */
.auth-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.hotline-wrapper {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
}

.btn-hotline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    margin: 5px;
    transition: all 0.2s;
}

.btn-call { background: #e0f2fe; color: #0369a1; }
.btn-call:hover { background: #bae6fd; }

.btn-whatsapp { background: #dcfce7; color: #15803d; }
.btn-whatsapp:hover { background: #bbf7d0; }

/* --- MOBILE RESPONSIVENESS (Fixes for Screens < 992px) --- */
@media (max-width: 992px) {
    .auth-card-modern {
        flex-direction: column; /* Stack Top-to-Bottom */
        max-width: 500px;
        min-height: auto;
    }

    .auth-visuals {
        display: none; /* Hide the big blue side on mobile to save space */
    }

    .auth-form-side {
        padding: 30px 20px;
        flex: 1;
    }

    .auth-header-mobile {
        display: block; /* Show Logo on Mobile Top */
        text-align: center;
        margin-bottom: 30px;
    }

    .brand-logo {
        width: 80px;
        height: auto;
        margin-bottom: 15px;
    }

    .auth-header-mobile h3 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
}