/* Reset some default styles */
body, h1, h2, p, input, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Full viewport height container */
html, body {
    font-family: Arial, sans-serif;
    background-size: cover;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Container to hold the sections */
.container {
    display: flex;
    flex-wrap: nowrap;
    min-height: 100vh;
}

/* Style for the left section */
.left-side {
    flex: 1;
    background-color: #ecead7; /* Use accent color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    width: 45%; /* Adjust size as needed */
    border-radius: 26px;
    margin-bottom: 20px; /* Add spacing below logo */
}

/* Spacing adjustments for headers */
h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

h2 {
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.5; /* Improves text readability */
}

/* Styling for the email section */
.email-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%; /* Ensure it spans the container */
    max-width: 400px; /* Optional max width */
}

input[type="email"] {
    width: calc(100% - 110px); /* Adjust width based on button size */
    padding: 10px;
    font-size: 1rem;
    border: 0px solid #ff5c5c;
    border-radius: 5px 0 0 5px;
    background-color: #fff; /* Background white */
    color: black;
}

button {
    width: 100px; /* Adjust size as needed */
    padding: 10px;
    font-size: 1em;
    margin-left: -5px; /* Reduce the gap between input and button */
    cursor: pointer;
    background: #ff5c5c;
    border: none;
    border-radius: 0 5px 5px 0;
    color: white;
    transition: background 0.4s ease;
}

/* Hover effect for button */
button:hover {
    background-color: #e14f4f;
}

/* Social icons styling */
.social-icons {
    margin-top: auto; /* Pushes the icons to the bottom */
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px 0; /* Optional padding */
}
.social-icons a {
    margin: 0 10px;
    font-size: 1.5rem;
    color: rgb(0, 0, 0);
}

/* Style for the right section */
.right-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    overflow: hidden; /* Ensure overflow is hidden to prevent any excess */

}

.side-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the space without distortion */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-side, .right-side {
        flex: none;
        width: 100%;
    }
    
    .email-section {
        display: flex;
        flex-direction: column;
    }
    
    input[type="email"], button {
        width: 100%;
        margin: 5px 0;
    }

     /* Adjust image size for mobile */
     .right-side {
        height: 50vh; /* Makes the image take up half of the mobile viewport height */
    }

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