body {
    font-family: Arial, sans-serif;
    background-color: #534f4f;
    display: flex; /* Re-enable flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

.background-image {
    position: relative; /* Keep this for positioning the login-container */
    background-image: url('cnc.png');
    background-size: 100% 100%; /* Make the background image fit the 1024x1024 div */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    background-position: center; /* Center the image within its own div */
    color: #aaa;
    width: 1024px; /* Fixed width */
    height: 1024px; /* Fixed height */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Re-added box-shadow */
    border-radius: 8px; /* Re-added border-radius */
}

.login-container {
    position: absolute;
    top: 300px;
    left: 100px;
    background-color: #222;
    color: #aaa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

h2 {
    margin-bottom: 20px;
    color: #aaa;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #333;
    color: #eee;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.error-message {
    color: #a00;
    margin-top: 15px;
    font-size: 0.9em;
}