* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
}

body {
    background-color: #435165;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100vh; /* Full viewport height */
    margin: 0; /* Remove default margin */
}

.login {
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Add padding */
}

.login h1 {
    text-align: center;
    color: #5b6574;
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
}

.login form {
    display: flex;
    flex-direction: column; /* Stack vertically */
    justify-content: center;
    padding-top: 20px;
}

.login form label {
    display: block; /* Make labels block elements */
    margin-bottom: 5px; /* Space between label and input */
}

.login form input[type="password"],
.login form input[type="text"] {
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
    border-radius: 4px; /* Rounded corners for inputs */
}

.login form input[type="submit"] {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #3274d6;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
    border-radius: 4px; /* Rounded corners */
}

.login form input[type="submit"]:hover {
    background-color: #2868c7;
}

#logoutButton {
    width: 100%;
    padding: 15px;
    margin-top: 10px; /* Space between login button and logout button */
    background-color: #f44336;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
    border-radius: 4px; /* Rounded corners */
}

#logoutButton:hover {
    background-color: #d32f2f;
}

/* Message styles */
.message {
    margin-top: 20px; /* Space above the message */
    padding: 10px;
    border: 1px solid #dee0e4;
    border-radius: 4px; /* Rounded corners */
    text-align: center; /* Center the text */
}

/* Optional: Style for successful messages */
.message.success {
    border-color: #4caf50; /* Green border for success messages */
    background-color: #e7f3fe; /* Light green background */
    color: #31708f; /* Darker green text color */
}

/* Optional: Style for error messages */
.message.error {
    border-color: #f44336; /* Red border for error messages */
    background-color: #f9e9e9; /* Light red background */
    color: #f44336; /* Red text color */
}


#mainPageButton {
    position: absolute; /* Position it relative to the nearest positioned ancestor */
    top: 20px; /* Distance from the top */
    right: 20px; /* Distance from the right */
    padding: 10px 15px;
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

#mainPageButton:hover {
    background-color: #0056b3; /* Darker blue on hover */
}