/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
    color: #333;
    flex-direction: column; /* Allows footer to stay at the bottom */
    padding-top: 60px; /* Space for the header */
}

/* Header Styling */
header {
    position: absolute;
    top: 20px; /* Position at the top of the page */
    left: 0;
    width: 100%;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    color: #4CAF50; /* Match the green theme color */
    font-weight: 600;
    margin: 0;
}

/* Login Section Container */
#login-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-top: 20px; /* Adds spacing below the header */
}

/* Title Styling for Login Section */
#login-section h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #4CAF50;
    font-weight: 600;
}

/* Error Message Styling */
#error-message {
    color: #ff4d4d;
    font-weight: bold;
    margin-bottom: 1em;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
}

/* Label Styling */
label {
    text-align: left;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

/* Input Styling */
input[type="email"],
input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    width: 100%;
    font-size: 1rem;
}

/* Forgot Password Link */
#forgot-password {
    text-align: right;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: -5px;
    margin-bottom: 20px;
    display: inline-block;
}

#forgot-password:hover {
    text-decoration: underline;
}

/* Submit Button Styling */
button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

button:hover {
    background-color: #45a049;
}

/* Footer Styling */
footer {
    position: absolute;
    bottom: 10px;
    font-size: 0.8rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    #login-section {
        padding: 20px;
        width: 90%;
    }

    h2 {
        font-size: 1.5rem;
    }

    button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}
