/* General Body Styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('../images/BG.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333; /* Default text color */
}
.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}


/* Login Container */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 0 10vw; /* Adjust padding for smaller screens */
}

/* Logo Styling */
.logo {
    margin-bottom: 20px;
}

.logo img {
    width: 15vw; /* Responsive size */
    max-width: 120px; /* Ensure it doesn’t get too big */
    min-width: 80px; /* Minimum size */
}

/* Login Box Styling */
.login-box {
    background-color: rgba(255, 255, 255, 0.25); /* Slightly more transparent */
    backdrop-filter: blur(12px);
    padding: 5vw; /* Responsive padding */
    border-radius: 15px;
    width: 90%; /* Responsive width */
    max-width: 400px; /* Maximum width */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25); /* Stronger shadow */
    border: 2px solid #ff0000;
    box-sizing: border-box; /* Include padding in width calculations */
    text-align: center;
}

.login-box h1 {
    text-align: center;
    color: #222; /* Darker shade for better contrast */
    font-size: 1.8rem; /* Responsive font size */
    margin-bottom: 2rem;
    font-family: 'Arial Black', sans-serif;
}

/* Input Group Styling */
.inputGroup {
    position: relative;
    margin-bottom: 1.5rem; /* Spacing between input fields */
}

.inputGroup input {
    font-size: 1rem; /* Responsive font size */
    padding: 0.8em 1em; /* Adjust padding to prevent overflow */
    outline: none;
    border: 2px solid #000000;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    width: 100%;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inputGroup input:focus {
    border-color: rgb(255, 0, 0);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3); /* Subtle red glow on focus */
}

.inputGroup label {
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 25px; /* Adjusted position to match padding */
    transform: translateY(-50%);
    pointer-events: none;
    color: #444;
    transition: all 0.3s ease;
}

/* Animation when Focused or Input has Value */
.inputGroup input:focus + label,
.inputGroup input:not(:placeholder-shown) + label {
    top: -12px;
    left: 15px;
    font-size: 0.9rem; /* Responsive label font */
    color: rgb(255, 0, 0);
    padding: 0 5px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.8); /* Add slight background to label */
}

/* Button Styling */
.login-box button {
    width: 100%;
    padding: 0.8em; /* Adjust padding for responsiveness */
    background-color: #ff0000; /* Brighter red */
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem; /* Responsive font size */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.login-box button:hover {
    background-color: darkred;
    transform: scale(1.03); /* Subtle zoom */
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.4); /* Red shadow on hover */
}

.login-box button:active {
    transform: scale(0.97); /* Press-down effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Media Queries for Responsiveness */

/* Medium Screens (Tablets) */
@media (max-width: 768px) {
    .login-box {
        padding: 4vw; /* Adjust padding for tablets */
    }

    .logo img {
        width: 12vw; /* Adjust logo size */
    }
}

/* Small Screens (Mobile Phones) */
@media (max-width: 480px) {
    .login-box {
        width: 95%; /* Full width for small screens */
        padding: 3vw; /* Adjust padding */
    }

    .logo img {
        width: 20vw; /* Smaller logo for mobile devices */
    }

    .login-box h1 {
        font-size: 1.5rem; /* Smaller heading for mobile */
    }

    .inputGroup input {
        font-size: 0.9rem; /* Smaller input text size */
        padding: 0.7em; /* Adjust padding */
    }

    .inputGroup label {
        font-size: 0.9rem; /* Smaller label size */
    }

    .login-box button {
        font-size: 1rem; /* Smaller button text */
        padding: 0.7em;
    }
}
