/* General styles for the body */
body {
    font-family: Arial, sans-serif;
    background-color: #f7f9fc;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Center the content in a container */
.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box;
}

h1 {
    font-size: 28px;
    color: #333333;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
}

label {
    font-weight: bold;
    color: #555555;
    display: block;
    margin-bottom: 5px;
}

input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.error, .success {
    margin-top: -10px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.error {
    margin-top: 5px;
    color: red;
}

.success {
    color: green;
}

button {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 200px;
}

button:hover {
    background-color: #0056b3;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 24px;
    }

    .container {
        padding: 20px;
        max-width: 90%; /* Make container span most of the screen on smaller devices */
    }

    input[type="email"], button {
        font-size: 14px;
    }

    button {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    input[type="email"] {
        font-size: 14px;
        padding: 8px;
    }

    button {
        font-size: 14px;
        padding: 10px;
    }
}
