/* General body styling for the login page */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #ffffff 30%, #ffffff); /* White to red gradient background */
    color: #333;
    text-align: center;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Notification/alert styling at the top of the page */
.notification {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffe6e6;
    color: #B22222;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #B22222;
    z-index: 1000;
    width: auto;
    animation: fadeIn 0.5s ease; /* Fade-in animation */
}

/* Login form container with red border, white background, and shadow */
.login-container {
    background-color: white;
    border: 2px solid #B22222; /* Red border */
    border-radius: 25px;
    padding: 40px 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    animation: slideIn 1s ease; /* Slide-in animation */
}

/* Form title */
.login-container h2 {
    color: #B22222;
    font-size: 28px;
    margin-bottom: 20px;
}

/* Input field styling */
.login-container input[type="text"], 
.login-container input[type="password"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 30px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: #B22222; /* Red border on focus */
    outline: none;
}

/* Button styling */
.login-container button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #FF4500;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container button:hover {
    background-color: #B22222; /* Darker red on hover */
}

/* Animation for fading in notification */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px); /* Start slightly higher */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Slide into place */
    }
}

/* Animation for sliding in the login container */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(100px); /* Start lower */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Slide into place */
    }
}

/* Responsive styling */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 15px;
    }

    .login-container h2 {
        font-size: 24px;
    }

    .login-container input {
        font-size: 14px;
        padding: 12px;
    }

    .login-container button {
        font-size: 16px;
    }
}
