/* Ensure full height without scrolling */
body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../images/index-bg.png'); /* Ensure correct path */
    background-size: cover; /* Cover full screen */
    background-repeat: no-repeat;
    background-position: center center; /* Center the image properly */
}

/* Split Form Container */
.split-form {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    width: 90%;
    max-width: 800px;
    max-height: 90vh; /* Ensure it fits inside viewport */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Left Side - Welcome Section */
.image-side {
    flex: 1;
    background: linear-gradient(135deg, #FF6B6B, #FFE66D);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.image-side h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.image-side p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Right Side - Form Section */
.form-side {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Input Fields */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}

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

/* Submit Button */
button {
    width: 100%;
    padding: 12px;
    background: #FF6B6B;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

button:hover {
    transform: translateY(-3px);
    background: #E65C5C;
}

/* Responsive Design */
@media (max-width: 768px) {
    .split-form {
        flex-direction: column;
        max-width: 100%;
    }

    .image-side {
        padding: 1.5rem;
    }

    .form-side {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        background-size: contain; /* Adjust image size on smaller screens */
        background-position: top center;
    }

    .split-form {
        width: 95%;
    }

    .form-side {
        padding: 1.5rem;
    }

    .form-group input {
        padding: 10px;
    }

    button {
        padding: 10px;
    }
}

/* Error Box Styling */
.error-box {
    background-color: #ffdddd !important;
    color: #d8000c !important;
    padding: 10px !important;
    margin-bottom: 15px !important;
    border: 1px solid #d8000c !important;
    border-radius: 5px !important;
    text-align: center !important;
    display: block !important;
}
