/* Universal reset for margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body Styling */
body {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    margin: 0;
    overflow-x: hidden;
    /* Prevent horizontal overflow */
}

/* Form Container */
form {
    width: 400px;
    /* Fixed width */
    min-width: 400px;
    /* Prevent shrinking below this width */
    margin: 0 auto;
    /* Center horizontally */
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex-shrink: 0;
    /* Prevent flex shrinking */
}

/* Form Title */
h1 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
}

/* Label Styling */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    text-align: left;
}

/* Input Fields Styling */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fafafa;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Input Fields Focus Effect */
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #3498db;
}

/* Button Container */
.buttons {
    display: flex;
    justify-content: space-between;
}

/* Buttons Styling */
button {
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Login Button - Green */
.buttons button:nth-child(1) {
    background-color: #28a745;
    /* Green */
}

.buttons button:nth-child(1):hover {
    background-color: #218838;
    /* Darker green on hover */
}

/* Register Button - Blue */
.buttons button:nth-child(2) {
    background-color: #007bff;
    /* Blue */
}

.buttons button:nth-child(2):hover {
    background-color: #0069d9;
    /* Darker blue on hover */
}

/* Message Styling */
.success-message {
    color: green;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.error-message {
    color: red;
    /* Red color for error messages */
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Welcome Page Styling */

.button-logout button:nth-child(1) {
    background-color: #da5462;
}

.button-logout button:nth-child(1):hover {
    background-color: #c82333;
}