/* General styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Login Page Specific Styles */
body:has(.login-container) {
    background-color: #222; /* Dark background */
    color: #eee; /* Light text */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background-color: #333; /* Slightly lighter dark shade for the box */
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 350px; /* Max width for the login box */
    text-align: center;
}

.login-container h1 {
    margin-bottom: 25px;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ccc;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #555;
    background-color: #444;
    color: #eee;
    border-radius: 4px;
    font-size: 1em;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #007bff; /* Highlight color on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #007bff; /* Blue submit button */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.error {
    color: #ff4d4d; /* Red for error messages */
    margin-top: 15px;
    min-height: 1em; /* Reserve space to prevent layout shifts */
    font-size: 0.9em;
}

/* Success Page Specific Styles */
body:has(.success-container) {
    background-color: #e6ffed; /* Light green background */
    color: #006400; /* Dark green text */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.success-container {
    padding: 50px;
}

.success-container h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: #28a745; /* Brighter green for the main message */
}

.success-container p {
    font-size: 1.2em;
    color: #155724; /* Darker green for the sub-text */
}

/* Optional: Style for a logout link if you add one */
.success-container a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.success-container a:hover {
    background-color: #c82333;
}