/* Body */
.login-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* Add top padding to account for fixed navbar */
.container-fluid.h-100 {
    padding-top: 80px; /* adjust if navbar height changes */
}

/* Left Column - Branding */
.login-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.login-left h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
}

.login-image {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Right Column - Form */
.login-right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-form-container {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-form-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.login-form-container .form-control {
    padding: 10px;
    font-size: 1rem;
}

.btn-login {
    width: 100%;
    background-color: #28a745;
    border-color: #28a745;
    color: #fff !important;
    padding: 12px 0;
    font-weight: 600;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Back Button - Transparent Style */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 14px;
    background-color: rgba(0, 123, 255, 0.05);
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    z-index: 10;
}

.back-btn:hover {
    background-color: rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.back-btn i {
    font-size: 1rem;
}

/* Home Button - Transparent Style */
.home-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 12px;
    background-color: rgba(0, 123, 255, 0.05);
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 6px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    z-index: 10;
}

.home-btn:hover {
    background-color: rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.home-btn i {
    font-size: 1rem;
    margin-right: 5px;
}

/* Clinisys Logo on top of form */
.form-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .login-left h1 {
        font-size: 2rem;
    }

    .login-image {
        max-width: 80%;
    }

    .login-form-container {
        max-width: 100%;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .row.h-100 {
        flex-direction: column;
    }
    .login-right {
        order: 1;
        padding: 30px 15px;
    }
    .login-left {
        order: 2;
        padding: 30px 15px;
    }
    .login-left h1 {
        font-size: 1.8rem;
    }
    .login-image {
        max-width: 70%;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .login-left h1 {
        font-size: 1.5rem;
    }
    .login-form-container {
        padding: 1rem;
    }
    .btn-login {
        font-size: 0.9rem;
        padding: 10px;
    }
}