/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primaryColor: #162328;
    --white: #ffffff;
    --green2: #3FC060;
    --green3: #6BDF89;
    --textGray: #6c757d;
    --backgroundGradient: linear-gradient(to right, var(--green3), var(--primaryColor));
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background: var(--primaryColor);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--primaryColor);
}

/* Container */
.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 90%;
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Left Form Section */
.form-container {
    flex: 1;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header .logo {
    width: 100px;
    margin: 0 auto 20px;
}

.form-header h2 {
    font-size: 26px;
    font-weight: bold;
    color: var(--primaryColor);
}

.form-body {
    margin-top: 20px;
}

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

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primaryColor);
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    font-size: 14px;
    border: 1px solid var(--green3);
    border-radius: 5px;
    outline: none;
    color: var(--primaryColor);
}

.form-group input:focus {
    border-color: var(--green2);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.btn {
    background: var(--green3);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--green2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

/* Link */
.link {
    color: var(--green2);
    text-decoration: none;
}

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

/* Right Image Section */
.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--green2);
    position: relative;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        background: none;
        /* Remove white background */
    }

    .image-container {
        display: block;
        width: 100%;
        height: 100vh;
        /* Full height for background */
        background-image: url('{{asset("images/backgrounds/loginpackgrnn.jpg")}}');
        /* Set your image path */
        background-size: cover;
        background-position: center;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        /* Push it behind the form */
    }

    .form-container {
        padding: 20px;
        background: rgba(255, 255, 255, 0.9);
        /* Semi-transparent white background for readability */
        border-radius: 15px;
        width: 90%;
        margin: auto;
        z-index: 1;
        /* Place it above the image */
        position: relative;
    }
}