/*
 * General Styles and Typography
 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* Very light gray background */
    color: #343a40; /* Dark gray text for readability */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/*
 * Login Form Container
 */
.login-container {
    background-color: #ffffff; /* Pure white container background */
    padding: 40px;
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle box shadow for depth */
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

h2 {
    text-align: center;
    color: #007bff; /* A formal blue for the heading */
    margin-bottom: 25px;
    font-weight: 600;
}

/*
 * Form Elements
 */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ced4da; /* Light gray border */
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect total width */
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #007bff; /* Focus highlight color */
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/*
 * Submit Button
 */
button[type="submit"] {
    background-color: #007bff; /* Primary action color (formal blue) */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3; /* Slightly darker blue on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/*
 * Error Messages Styling (for the PHP output)
 */
.error-message {
    color: #dc3545; /* Formal red for errors */
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}