/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Use variables from style.css for consistency */
body.login-page-body {
    font-family: var(--font-primary, 'Poppins', sans-serif);
    background-color: var(--light-gray-color, #f4f6f8);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.login-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 20px;
    background-color: var(--white-color, #fff);
    border-radius: var(--border-radius, 8px);
    box-shadow: var(--box-shadow, 0 10px 25px rgba(0, 0, 0, 0.1));
    display: flex;
    overflow: hidden;
}

.login-image-panel {
    width: 50%;
    background: url('../images/happy-woman-and-man-eating-sandwich-and-taking-selfie-at-footpath-JCCMF08077 1.png') no-repeat center center;
    background-size: cover;
    color: var(--white-color, #fff);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    position: relative;
}

.login-image-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.login-image-content {
    position: relative;
    z-index: 2;
}

.login-header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.login-header .logo {
    color: var(--secondary-color, #2c3e50);
    font-size: 1.5rem;
    text-decoration: none;
}

.login-header .logo span {
    color: var(--primary-color, #27ae60);
}

.login-image-content .logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white-color, #fff);
    text-decoration: none;
}

.login-image-content .logo span {
    color: var(--primary-color, #27ae60);
}

.login-image-content p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.login-form-panel {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center align the form content */
    text-align: center;
    /* Center align the text */
}

.login-form-panel h2 {
    font-family: var(--font-secondary, 'Montserrat', sans-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color, #2c3e50);
    margin-bottom: 10px;
}

.login-form-panel .subtitle {
    color: var(--text-color-light, #555);
    margin-bottom: 30px;
}

.login-form-panel form {
    width: 100%;
    max-width: 320px;
    /* Add a max-width for the form */
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-light, #999);
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius, 8px);
    font-size: 1rem;
    font-family: var(--font-primary, 'Poppins', sans-serif);
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color, #27ae60);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-color-light, #555);
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color, #27ae60);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login-submit {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--primary-color, #27ae60);
    color: var(--white-color, #fff);
    border: none;
    border-radius: var(--border-radius, 8px);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-login-submit:hover {
    background-color: var(--primary-color-dark, #229954);
    transform: translateY(-2px);
}

.register-link {
    text-align: center;
    margin-top: 25px;
    color: var(--text-color-light, #555);
}

.register-link a {
    color: var(--primary-color, #27ae60);
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border: 1px solid #f5c6cb;
    border-radius: var(--border-radius, 8px);
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 800px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-image-panel,
    .login-form-panel {
        width: 100%;
    }

    .login-image-panel {
        min-height: 250px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    .login-form-panel {
        padding: 30px;
    }

    .login-form-panel h2 {
        font-size: 1.8rem;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}