/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Body Styling */
body {
    background: linear-gradient(to right, #0d0d0d, #1a1a1a);
    color: white;
    height: 100vh;
}

.align-div {
    display: flex;
    align-items: center;
    justify-content: center;

}

/* Login Section */
#login-section {
    width: 100%;
    padding: 2rem;
    animation: fadeIn 1s ease-in-out;
}

.main-content {
    background: #0e1a2b;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 119, 255, 0.4);
    max-width: 400px;
    margin: auto;
    animation: slideUp 0.8s ease-in-out;
}

/* Headings */
.main-content h2 {
    color: #007bff;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.main-content p {
    text-align: center;
    color: #cccccc;
    margin-bottom: 2rem;
}

/* Form Fields */
form input[type="text"],
form input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #1f2a3a;
    color: white;
    transition: background 0.3s ease;
}

form input::placeholder {
    color: #aaa;
}

form input:focus {
    background-color: #2e3e56;
    outline: none;
}

/* Submit Button */
button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Message Styling */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 500px) {
    .main-content {
        padding: 2rem 1rem;
    }

    form input[type="text"],
    form input[type="password"],
    button[type="submit"] {
        font-size: 1rem;
    }
}