* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.login-container {
    display: flex;
    min-height: 100vh;
    background: white;
}

/* Left Side - Image */
.login-image {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../img/log.jpeg') center/cover;

}

.login-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0) 50%, rgb(255, 255, 255) 100%);
    z-index: 2;
}

/* Right Side - Form */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #ffffff;
}

.login-form-container {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    font-family: inherit;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #059669;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

/* Sign In Button */
.sign-in-btn {
    width: 100%;
    padding: 14px 16px;
    background-color: #059669;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 14px;
}

.sign-in-btn:hover {
    background-color: #047857;
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.25);
}

.sign-in-btn:active {
    transform: translateY(1px);
}

/* Google Sign In Button */
.google-signin-btn {
    width: 100%;
    padding: 14px 16px;
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.google-signin-btn img {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}


.google-signin-btn:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Sign Up Link */
.signup-link {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.signup-link a {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.signup-link a:hover {
    color: #047857;
}

.message-box {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 400;
    display: none;
    animation: slideDown 0.3s ease-out;
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 0.5px solid #f5c6cb;
    display: block;
}

.message-box.success {
    background-color: #d4edda;
    color: #059669;
    border: 0.5px solid #c3e6cb;
    display: block;
}

.form-group {
    position: relative;
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 0.5px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #999;
    opacity: 1;
}

.form-group input:focus {
    outline: none;
    border-color: #059669;
}

.form-group input.error-input {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.form-group input.error-input:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-form-container {
        max-width: 400px;
        padding: 40px 30px;
    }

    .login-title {
        font-size: 26px;
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: row;
        /* Keep row so the single child fills height naturally, or column works too if we force height */
    }

    .login-image {
        display: none;
    }

    .login-form-section {
        flex: 1;
        padding: 30px 20px;
        min-height: 100vh;
        background: #f8f9fa;
        /* Optional: Slight bg color change for contrast if desired, but white is fine */
    }

    .login-form-container {
        max-width: 450px;
        /* Keep constrained width */
        width: 100%;
        padding: 40px 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        /* Enhance shadow for standalone card */
    }

    .login-title {
        font-size: 24px;
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 20px;
    }

    .login-form-container {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .sign-in-btn,
    .google-signin-btn {
        padding: 12px;
        font-size: 14px;
    }
}