/* General styles */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(to right, #7eaee5, #3260ea);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Login container */
.login-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    width: 350px;
    max-width: 100%;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

/* Heading */
h2 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

/* Input fields */
input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

/* Input focus effect */
input:focus {
    border-color: #28a745;
    box-shadow: 0px 0px 5px rgba(40, 167, 69, 0.5);
    outline: none;
}

/* Button styles */
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #2858ca, #2955e2);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Button hover effect */
button:hover {
    background: linear-gradient(to right, #218838, #1e7e34);
    transform: scale(1.05);
}

/* Error message */
.error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        height: auto;
        padding: 40px 20px;
    }
    
    .login-container {
        width: 80%;
        padding: 20px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    input,
    button {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 100%;
        padding: 15px;
    }
    
    h2 {
        font-size: 18px;
    }

    input {
        padding: 10px;
        font-size: 14px;
    }

    button {
        padding: 10px;
        font-size: 14px;
    }
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
