/* Ensure all form elements respect the container width */
* {
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
    background-color: whitesmoke;
    color: white;
}

.login-area {
    width: 100%;
    max-width: 350px;
    padding: 30px;
    border-radius: 8px;
    background-color: #f3f3f3;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    color: #333333;
}

h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    width:100%;
    font-weight: bold;
}

/* Ensure form elements use full width of the container */
input[type="text"], input[type="password"], button[type="submit"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding and borders in width */
}

button[type="submit"] {
    background-color: #0078d7;
    color: white;
    border: none;
    cursor: pointer;
}

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

.message {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.error {
    color: red;
}

.success {
    color: green;
}
