body {
    background-color: #121212;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

.login-container {
    margin: auto;
    width: 300px;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #4CAF50;
}

input {
    width: 100%;
    padding: 10px;
    margin: 0;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #333;
    color: white;
    font-size: 14px;
}

input:focus {
    outline: none;
    background-color: #444;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

input::placeholder {
    color: #aaa;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: flex;
    align-items: center;
    margin: 10px 0 5px 0;
    font-size: 14px;
    color: #ccc;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin: 0 8px 0 0;
}

.admin-navbar {
    background-color: #333;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.nav-links a:hover {
    background-color: #4CAF50;
}

/* Override any conflicting nav-links styles from other templates */
body .nav-links {
    margin-bottom: 0;
}

body .nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
}

body .nav-links a:hover {
    background-color: #4CAF50;
    text-decoration: none;
}

/* Error page styling */
.error-message {
    background-color: #4a1a1a;
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #ffcccc;
    text-align: center;
}

.error-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.error-actions {
    text-align: center;
    margin-top: 20px;
}

.back-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #45a049;
    text-decoration: none;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #4CAF50;
}

/* Special styling for error page header */
.error-header {
    color: #ff6b6b !important;
}



/* Adjust page containers to account for navbar */
.users-container, .register-container {
    margin-top: 20px;
}