body {
    margin: 0;
    font-family: "Geist", sans-serif;
    font-optical-sizing: auto;
    background-color: #040304;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    width: 90%; /* Adjust as needed */
    max-width: 1200px; /* Max width of the container */
    margin: 20px;
    background-color: #040304; /* Ensure background is black */
}

.content {
    flex: 1; /* Takes available space */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px; /* Minimum width for the content section before wrapping */
}

.logo {
    color: #ff00ff; /* Pink color */
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    font-size: 3em;
    line-height: 1.1;
    margin-bottom: 20px;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 550px; /* Control paragraph width */
}

form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="email"] {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    font-size: 1em;
    max-width: 350px; /* Limit input width */
}

input[type="email"]::placeholder {
    color: #bbb;
}

input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px #434343;
}

input[type="email"].valid {
    border: 2px solid #00ff00;
    box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.2);
}

input[type="email"].invalid {
    border: 2px solid #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

button[type="submit"] {
    padding: 15px 30px;
    background-color: #f8f8f8;
    color: #333333;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #434343; /* Darker pink on hover */
	color: #f8f8f8;
}

button[type="submit"]:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.small-text {
    font-size: 0.85em;
    color: #aaa;
    max-width: 550px; /* Control paragraph width */
}

.error-message {
    color: #ff4444;
    font-size: 0.9em;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 5px;
    max-width: 550px;
    animation: errorSlideIn 0.3s ease-out;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-container {
    flex: 1;
    min-width: 300px; /* Minimum width for the image container before wrapping */
    background-image: url('pinkk.png'); /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px; /* Ensure image container has some height */
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .container {
        flex-direction: column; /* Stack content and image vertically */
    }

    .content, .image-container {
        min-width: unset; /* Remove min-width constraint */
    }

    .content {
        padding: 30px 20px;
        text-align: center;
    }

    .logo {
        text-align: center;
    }

    h2 {
        font-size: 2.2em;
    }

    p, .small-text {
        margin-left: auto;
        margin-right: auto;
    }

    form {
        flex-direction: column; /* Stack input and button vertically */
        align-items: center;
    }

    input[type="email"] {
        max-width: 100%; /* Allow input to take full width */
		text-align: center;
    }

    button[type="submit"] {
        width: 100%;
        max-width: 350px; /* Keep button width reasonable */
    }
}

@media (max-width: 500px) {
    h2 {
        font-size: 1.8em;
    }
    .logo {
        font-size: 2em;
    }
	    input[type="email"] {
        text-align: center;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #434343;
    margin: 10% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(255, 0, 255, 0.3);
    border: 1px solid #000;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px 0;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #ff00ff;
    text-decoration: none;
}

.modal-body {
    text-align: center;
    padding: 20px 40px 40px;
}

.success-icon {
    font-size: 4em;
    color: #00ff00;
    margin-bottom: 20px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.modal-body h2 {
    color: #ff00ff;
    font-size: 2em;
    margin-bottom: 15px;
    margin-top: 0;
}

.modal-body p {
    color: #ccc;
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 0;
    max-width: none;
}

/* Responsive modal */
@media (max-width: 600px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .modal-body {
        padding: 15px 25px 30px;
    }
    
    .success-icon {
        font-size: 3em;
    }
    
    .modal-body h2 {
        font-size: 1.6em;
    }
    
    .modal-body p {
        font-size: 1em;
    }
}