/* Ensure full height for the body and html */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login-box {
    background-color: rgba(50, 137, 218, 0.568);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(230, 227, 72, 0.212);
    width: 400px;
    text-align: center;
    opacity: 0; /* Start invisible */
    transform: translateY(-20px); /* Start slightly above */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out; /* Fade in with slide */
}

.login-box h2 {
    margin-bottom: 20px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 90%;
    padding: 10px;
    margin: 5px 0 20px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-box button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.login-box button:hover {
    background-color: #45a049;
}

/* Fade-in effect */
.fade-in {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* At original position */
}

/* Error handeling */
.error-box {
    color: red; /* Red text color */
    background-color: #ffe6e6; /* Light red background to make it stand out */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid red;
    border-radius: 5px;
    text-align: center;
}

.hidden {
    display: none; /* Hidden by default */
}