/* Background Image */
body {
    background: url('banner.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    animation: fadeIn 1.5s ease-in-out;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Box */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    width: 350px; /* Reduced width slightly for better balance */
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideIn 1s ease-in-out;
}

/* Slide-in animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Heading */
h2 {
    color: #004080;
    margin-bottom: 20px;
    font-size: 22px;
}

/* Input Fields with Icons */
.input-group {
    position: relative;
    width: 90%;
    margin: 10px auto;
    transition: transform 0.3s ease-in-out;
}

.input-group input {
    width: 95%; /* Adjusted to fit within the container */
    padding: 12px 40px 12px 40px; /* Left padding for icon */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
    box-sizing: border-box; /* Prevents input from overflowing */
}

/* Focus effect */
.input-group input:focus {
    border-color: #0073e6;
    outline: none;
}

/* Icon inside input fields */
.input-group i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    transition: color 0.3s ease-in-out;
}

/* Change icon color when input is focused */
.input-group input:focus + i {
    color: #0073e6;
}

/* Button */
button {
    background: #004080;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

/* Button hover effect */
button:hover {
    background: #0073e6;
    transform: scale(1.05);
}

/* Button icon */
button i {
    margin-right: 10px;
}

/* Error Message */
.error {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
    animation: shake 0.3s ease-in-out;
}

/* Shake effect for error */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
