/* Base & Body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f1;
    color: #2e3a2f;
    margin: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    flex-direction: column;
}

/* Login Container */
.login-container {
    background: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 100, 0, 0.12);
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

/* Headings */
h1, h2 {
    color: #2e7d32;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Forms */
form {
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #3a5a30;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"] {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1.5px solid #b5c9b0;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    background-color: #fafaf7;
    color: #2e3a2f;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

/* Buttons */
button {
    padding: 0.85rem;
    background: #2e7d32;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #4caf50;
}

/* Error messages */
.error-message {
    background: #f8d7da;
    color: #842029;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    color: #3a5a30;
}

th {
    background-color: #a3c293;
    color: #1b3a1b;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #e6f0df;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    body {
        margin: 10px;
        padding: 1rem;
        display: block;
        min-height: auto;
    }
    .login-container {
        max-width: 100%;
        margin: 20px auto;
        padding: 1.5rem 1.5rem;
    }
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="date"] {
        font-size: 0.95rem;
    }
    button {
        font-size: 1rem;
        padding: 0.75rem;
    }
    table {
        max-width: 100%;
        font-size: 0.9rem;
    }
}