*{
    margin: 0;
}
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 99.9vh;
    background: linear-gradient(to right, #74ebd5, #ACB6E5);
}

form {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3); 
    width: 350px;
    text-align: center;
    transition: transform 0.3s;
    animation: upDown 2s ease-in-out infinite;

}
@keyframes upDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(15px);
    }
    100% {
        transform: translateY(0);
    }
}

form:hover {
    transform: translateY(-5px);
}

h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 26px;
}

input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: 0.3s;
    box-sizing: border-box;
}

input:focus {
    border-color: #74ebd5;
    box-shadow: 0 0 8px rgba(116, 235, 213, 0.7);
    outline: none;
}

button {
    width: 45%;
    padding: 12px;
    margin: 10px 5px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button[type="submit"] {
    background-color: #74ebd5;
    color: #fff;
}

button[type="submit"]:hover {
    background-color: #4fd3c9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#resetButton {
    background-color: #ACB6E5;
    color: #fff;
}

#resetButton:hover {
    background-color: #8b95d0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#errorMessage {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 15px;
}

@media screen and (max-width: 400px) {
    form {
        width: 90%;
        padding: 30px 20px;
    }
}