/* General Reset */
body, h1, h2, p, input, select, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1efc01, #fbff01);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: background-slide 10s infinite alternate;
}

/* Background Animation */
@keyframes background-slide {
    0% {
        background: linear-gradient(135deg, #1ef801, #fbff01);
    }
    100% {
        background: linear-gradient(135deg, #5eff00, #ffee02);
    }
}

/* Form Container */
.form-container {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fade-in 1s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.form-container h2 {
    color: #444;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Input Fields */
input, select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

input:focus, select:focus {
    border-color: #6e8efb;
    outline: none;
    box-shadow: 0 0 8px rgba(110, 142, 251, 0.5);
}

/* Button */
button {
    background: linear-gradient(45deg, #00ff00, #3cff01);
    color: white;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    width: 100%;
    margin-top: 15px;
}

button:hover {
    background: linear-gradient(45deg, #66ff00, #fceb01);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(30, 255, 0, 0.3);
}

/* Links */
p a {
    color: #30f00a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

p a:hover {
    color: #32ce0b;
    text-decoration: underline;
}

/* Floating Effect */
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.form-container {
    animation: floating 4s ease-in-out infinite;
}

/* Placeholder Styling */
input::placeholder, select::placeholder {
    color: #bbb;
    font-style: italic;
}

/* Media Query */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        width: 90%;
    }

    h2 {
        font-size: 20px;
    }

    input, button {
        font-size: 14px;
    }
}
