* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #eaf3f6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    color: #4a4a4a;
}

.error-text {
    color: green;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.form-container {
    background-color: #ffffff;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 700px;
    max-width: 100%;
    text-align: left;
    position: relative;
    transition: box-shadow 0.4s ease;
    overflow: hidden;
}

.form-container:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.form-container:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(45deg, #004d00, #62bb46);
    transform: scaleX(1.5);
    transform-origin: center;
    animation: slide-gradient 2s ease-in-out infinite;
}

@keyframes slide-gradient {
    0% { transform: scaleX(1.5); }
    50% { transform: scaleX(1); }
    100% { transform: scaleX(1.5); }
}

.logo {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 30px;
    display: block;
    animation: logo-bounce 4s ease-in-out infinite;
}

@keyframes logo-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.input {
    padding:10px 20px;
    margin: 10px 0;
}

h2 {
    color: #004d00;
    margin-bottom: 20px;
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fade-in 1s ease-out;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

h3 {
    color: #004d00;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 2px solid #62bb46;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    color: #4a4a4a;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background-color: #f7f7f7;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #004d00;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 77, 0, 0.3);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button.submit-btn {
    background-color: #004d00;
    color: white;
    padding: 16px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: 600;
    width: 100%;
    max-width: 250px;
    margin: 20px auto;
    display: block;
}

button.submit-btn:hover {
    background-color: #003d00;
    transform: scale(1.05);
}

button.submit-btn:active {
    transform: scale(0.98);
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .form-container {
        width: 100%;
        padding: 25px;
    }

    .logo {
        max-width: 200px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 18px;
    }

    label {
        font-size: 15px;
    }

    input, select, textarea {
        font-size: 14px;
    }

    button.submit-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 15px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 16px;
    }

    button.submit-btn {
        font-size: 16px;
    }
}
