:root {
    --primary-color: #0056b3;
    /* Blue */
    --secondary-color: #d32f2f;
    /* Red */
    --background-color: #f4f6f8;
    /* Light Grey/White */
    --white: #ffffff;
    --text-color: #333333;
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    /* Ensures padding doesn't affect width */
}

button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #004494;
}

.error {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    background-color: #ffebee;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 800px;
    text-align: left;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.logout-btn {
    background-color: var(--secondary-color);
    width: auto;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: inline-block;
    color: white;
    border-radius: var(--border-radius);
}

.logout-btn:hover {
    background-color: #b71c1c;
}

.card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-top: 0;
    color: var(--primary-color);
}