/* General page styling */
body.login-page {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #f0f4f8; /* Light blue-gray background */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header styles */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004085;
    color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left img {
    height: 50px;
    flex-shrink: 0;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-center h1 {
    margin: 0;
    font-size: 1.5em;
}

.header-center p {
    margin: 0;
    font-size: 0.9em;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    padding-right: 40px; /* Increased padding for more space */
}

.header-right .home-button {
    background-color: #ffc107;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap; /* Prevents text wrapping inside the button */
}

.header-right .home-button:hover {
    background-color: #e0a800;
}

/* Login form styling */
main.content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Center form vertically */
    padding-top: 80px; /* Adjust for header height */
}

.login-container {
    width: 320px; /* Ensures proper space for input fields */
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
    color: #333;
}

.login-container input {
    width: calc(100% - 20px); /* Center-align input boxes */
    padding: 10px;
    margin: 0 auto 15px auto;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container .login-button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-container .login-button:hover {
    background-color: #0056b3;
}

#loginMessage {
    margin-top: 10px;
    color: red;
    font-size: 0.9em;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .header-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-center {
        text-align: center;
        margin-top: 10px;
        order: 1;
    }

    .header-right {
        margin-top: 10px;
        justify-content: center;
        order: 2;
    }
}
