
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   
}

body {
     font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #e8f5e9, #c8e6c9); 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.form-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #4caf50; 
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    color: #2e7d32; 
    margin-bottom: 0.5rem;
}

p {
    color: #555;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.error {
    color: #d32f2f;
    font-size: 0.8rem;
    min-height: 1.2rem;
    display: block;
    margin-top: 0.3rem;
}

button {
    width: 100%;
    padding: 0.8rem;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.success-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    animation: slideIn 0.5s ease-in;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive design */
@media (max-width: 600px) {
    .form-container {
        padding: 0.8rem;
        width: 70%;
        max-width: 100vw;
        
    }

    h1 {
        font-size: 1rem;
    }

    input, button {
        font-size: 0.8rem;
        padding: 8px;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .form-container {
        width: 60%;
        max-width: 45vw;
        padding: 1.5rem;
    }
    input, button {
        font-size: 0.9rem;
        padding: 10px;
    }
    h1 {
        font-size: 1.2rem;
    }
}

@media (min-width: 1025px)  {
    .form-container {
        width: 50%;
        max-width: 30vw;
        padding: 2rem;
    }

    h1 {
        font-size: 22px;
    }
}



