@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
}

body {
    background: linear-gradient(to bottom, white, #e6f7ef);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 20px 0;
    text-align: center;
}

.logo {
    color: #009432;
    font-size: 24px;
    font-weight: bold;
    font-family: "Baloo 2", cursive;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 50px;
    height: 50px;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

h1 {
    font-size: 48px;
    color: #333;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 18px;
    color: #555;
    max-width: 600px;
    line-height: 1.5;
    margin-bottom: 40px;
}

.form-container {
    display: flex;
    max-width: 600px;
    width: 100%;
    align-items: center;
}

input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    height: 52px; /* Ensure consistent height with button */
}

button {
    background-color: #009432;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    cursor: pointer;
    margin-left: -40px; /* Increase overlap */
    font-weight: 500;
    height: 52px; /* Match input height */
    white-space: nowrap;
}

button:hover {
    background-color: #007a29;
}

@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
    }

    input[type="email"] {
        margin-bottom: 15px;
        width: 100%;
    }

    button {
        margin-left: 0;
        width: 100%;
    }
}
