:root {
    --primary-color: #2563eb;
    --secondary-color: #1e293b;
    --bg-accent: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    background-color: #fff;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Side Split Layout */
.login-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Side: Brand Section */
.brand-section {
    flex: 1.2;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.brand-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66 3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-45c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm26 18c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm16-4c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM28 22c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.brand-floating-icon {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: float-slow 6s infinite ease-in-out;
    overflow: hidden;
}

.brand-floating-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

.brand-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
    color: #ffffff !important;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.brand-tagline {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 400px;
    line-height: 1.6;
}

/* Right Side: Form Section */
.form-section {
    flex: 1;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.login-form-area {
    width: 100%;
    max-width: 400px;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.form-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 8px;
}

.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background-color: #f8fafc;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-group-text {
    border-radius: 0 12px 12px 0 !important;
    border: 1px solid #e2e8f0;
    border-left: none;
    background-color: #f8fafc;
    color: #64748b;
    cursor: pointer;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    width: 100%;
    margin-top: 20px;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-submit:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.3);
    color: #fff;
}

.forgot-pass {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    html, body {
        overflow-y: auto !important;
        height: auto !important;
    }
    body {
        display: block;
        min-height: 100vh;
        background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    }
    .login-wrapper {
        flex-direction: column;
        height: auto !important;
    }
    .brand-section {
        flex: none;
        padding: 25px 20px 10px; /* Highly reduced padding */
        background: transparent;
    }
    .brand-section::before {
        display: none;
    }
    .brand-title {
        font-size: 1.7rem; /* Smaller font */
        margin-bottom: 5px;
    }
    .brand-floating-icon {
        width: 70px; /* Smaller icon */
        height: 70px;
        margin-bottom: 15px;
        border-radius: 50%;
    }
    .brand-floating-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    .brand-tagline {
        display: block; /* Show tagline again */
        font-size: 0.85rem; /* Smaller font for mobile */
        max-width: 250px;
        margin: 0 auto 20px;
        opacity: 0.7;
    }
    .brand-section .brand-footer {
        display: none; /* Hide absolute footer on mobile to prevent collision */
    }
    .form-section {
        flex: none;
        background: transparent;
        padding: 10px 20px 80px; /* Reduced top padding, more bottom padding for scroll space */
    }
    .login-form-area {
        background: #fff;
        padding: 30px 25px;
        border-radius: 24px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    }
    .form-header {
        display: none; /* Already covered by brand section on mobile */
    }
}
