/* Global Styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f2f7f4; /* Light greyish background */
    color: #34495e; /* Darker text color */
}

/* Box sizing for consistency in width calculations */
* {
    box-sizing: border-box; /* Ensure padding and border are included in width */
}

/* Login Wrapper */
.login-wrap {
    background: #ffffff; /* White background for the box */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Adjust width for mobile devices */
    max-width: 400px; /* Ensure it doesn't exceed 400px on larger screens */
    border-radius: 8px;
    box-shadow: 3px 3px 10px #333;
    padding: 25px;
    text-align: center;
    color: #34495e; /* Darker grey text */
    padding-left: 20px;
    padding-right: 20px;
}

/* Header */
.login-wrap h2 {
    font-size: 1.8em;
    font-weight: 200;
    margin-bottom: 20px;
    color: #34495e; /* Darker grey for the title */
}

.login-wrap h3 {
    font-size: 1.4em;
    font-weight: 200;
    margin-bottom: 20px;
    color: #f3ba3f; /* Yellow for the subtitle */
}

/* Form */
.form {
    padding-top: 10px;
    text-align: left; /* Left align the labels */
}

/* Label Positioning */
.form label {
    display: block;
    margin-bottom: 5px;
    color: #34495e;
    font-size: 14px;
    font-weight: 600; /* Bolden the labels for clarity */
}

/* Input Fields */
.form input[type="text"],
.form input[type="password"] {
    width: 100%; /* Full width input fields */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    color: #34495e;
}

/* Submit Button Styling */
.form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #f3ba3f; /* Yellow Button */
    color: #ffffff; /* White text */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.form input[type="submit"]:hover {
    background-color: #e0a82f; /* Slightly darker yellow */
}

/* Forgot Password Link */
.forgot-password {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #f3ba3f !important; /* Yellow for the link */
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Error Message Styling */
.error-message {
    text-align: center; /* Center the text */
    font-size: 18px; /* Adjust the font size */
    color: #ff4d4d; /* Use a softer red */
    background-color: #ffe6e6; /* Light red/pink background for contrast */
    border: 1px solid #ff4d4d; /* Add a border matching the text color */
    padding: 15px; /* Add some padding */
    margin-top: 20px; /* Spacing above the message */
    font-weight: bold; /* Bold text */
    border-radius: 8px; /* Rounded corners */
    max-width: 400px; /* Limit the width of the box */
    margin-left: auto; /* Center the box horizontally */
    margin-right: auto; /* Center the box horizontally */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}


/* Media Queries for Mobile Devices */
@media screen and (max-width: 480px) {
    .login-wrap {
        width: 95%;
        padding: 20px;
    }

    .form input[type="text"],
    .form input[type="password"] {
        width: 100%;
    }

    .form label {
        font-size: 12px;
    }

    .form input[type="submit"] {
        padding: 12px;
        font-size: 14px;
    }
}
