/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General body styling */
body {
    font-family: Arial, sans-serif;
    background-image: url('../images/background.jpg'); /* Background image */
    background-color: #121212; /* Dark background color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #e0e0e0; /* Light text color for readability */
    transition: background-color 0.3s ease; /* Smooth background transition */
}

/* Login form container */
.login-container {
    background-color: rgba(33, 33, 33, 0.9); /* Slightly darker for better contrast */
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 400px;
    transition: box-shadow 0.3s ease; /* Smooth box-shadow transition */
}

/* Title styling */
.login-container h1 {
    text-align: center;
    margin-bottom: 20px; /* Reduced space for a compact look */
    color: #4CAF50; /* Green color for the title */
    font-size: 36px; /* Larger font for main title */
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #f5f5f5;
    font-size: 24px; /* Slightly smaller for the login heading */
}

/* Input fields */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 16px;
    color: #e0e0e0;
    background-color: #333;
    transition: border-color 0.3s ease; /* Smooth focus transition */
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #4CAF50; /* Green border on focus */
}

/* Button styling */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Hover effect */
}

button[type="submit"]:hover {
    background-color: #45a049;
    transform: scale(1.05); /* Slightly grow on hover */
}

/* Error message */
.error-message {
    color: red;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

/* Optional: styling for links (forgot password, etc.) */
a {
    color: #4CAF50; /* Green color for links */
    text-decoration: none;
    font-weight: bold; /* Make links stand out */
}

a:hover {
    text-decoration: underline;
}

/* Responsive design - Ensure the form fits well on smaller screens */
@media screen and (max-width: 600px) {
    .login-container {
        padding: 20px; /* Less padding for smaller screens */
    }

    h1 {
        font-size: 28px; /* Smaller title font on mobile */
    }

    h2 {
        font-size: 20px; /* Smaller subtitle font on mobile */
    }

    input[type="email"],
    input[type="password"],
    button[type="submit"] {
        padding: 10px; /* Adjust input fields and button for smaller screens */
    }
}