body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    width: 100%;
    max-width: 900px; /* Max width of the entire card wrapper */
    padding: 20px;
}

.login-container {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden; /* Ensures rounded corners are respected */
}

/* Left Graphic Side Styling */
.login-graphic-side {
    flex: 1;
    padding: 40px;
    background-color: #f7f9fc; /* A subtle off-white for contrast */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.branding .logo {
    font-size: 48px;
    font-weight: bold;
    color: #255ec7;
    margin-bottom: 20px;
}

.branding h1 {
    font-size: 24px;
    color: #01234a;
    margin-bottom: 10px;
}

.branding p {
    font-size: 14px;
    color: #666;
}

.illustration-placeholder {
    height: 250px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align bars to the bottom */
    padding-bottom: 20px;
}

.chart-container {
    display: flex;
    justify-content: space-around;
    width: 80%;
    height: 100%;
    align-items: flex-end;
}

.bar {
    width: 30px;
    background-color: #255ec7; /* Use dashboard primary blue color */
    border-radius: 4px 4px 0 0;
    /* Apply the animation */
    animation: bar-grow 1.5s ease-out forwards;
    /* Set initial height to 0 for the animation to work */
    height: 0;
}

/* Define heights for each bar */
.bar-1 { height: 40%; animation-delay: 0.2s; background-color: #ff6384; }
.bar-2 { height: 70%; animation-delay: 0.4s; background-color: #36a2eb; }
.bar-3 { height: 50%; animation-delay: 0.6s; background-color: #cc65fe; }
.bar-4 { height: 85%; animation-delay: 0.8s; background-color: #ffce56; }

/* The actual animation keyframes */
@keyframes bar-grow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        /* This 'height' is overridden by the specific bar heights above */
        opacity: 1;
    }
}

/* Right Form Side Styling */
.login-form-side {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #01234a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
    padding: 10px 40px 10px 40px; /* Padding on left for lock icon, right for eye icon */
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #255ec7;
    box-shadow: 0 0 5px rgba(37, 94, 199, 0.3);
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
}

.input-with-icon .toggle-password {
    left: auto;
    right: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-with-icon .toggle-password:hover {
    color: #255ec7;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #255ec7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background-color: #1e4a8a;
}

/* Animations */
@keyframes fadeIn {
    0% {opacity: 0; transform: translateY(-20px);}
    100% {opacity: 1; transform: translateY(0);}
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-wrapper {
        padding: 10px;
    }

    .login-container {
        flex-direction: column;
        max-width: 100%;
    }

    .login-graphic-side,
    .login-form-side {
        flex: none;
        padding: 20px;
    }

    .branding .logo {
        font-size: 36px;
    }

    .branding h1 {
        font-size: 20px;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .illustration-placeholder {
        height: 200px;
        padding-bottom: 10px;
    }

    .chart-container {
        width: 90%;
    }

    .bar {
        width: 25px;
    }
}

@media (max-width: 480px) {
    .login-graphic-side,
    .login-form-side {
        padding: 15px;
    }

    .branding .logo {
        font-size: 28px;
    }

    .branding h1 {
        font-size: 18px;
    }

    .form-header h2 {
        font-size: 20px;
    }

    .illustration-placeholder {
        height: 150px;
    }

    .bar {
        width: 20px;
    }
}
