html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Ensures the body takes the full height */
}

/* Body styling */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full height of the viewport */
    background-image: url('bg.jpg'); /* Set your background image */
    background-size: cover; /* Cover the entire viewport */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-position: center center; /* Center the image */
    font-family: "Poppins", sans-serif;
}

/* Container for the form */
.container {
    text-align: center;
    width: 100%;
    padding: 20px; /* Added padding for smaller screens */
}

/* Wrapper for the login form */
.wrapper {
    background: rgba(128, 0, 0, 0.8); /* Semi-transparent background */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 400px; /* Maximum width of the form */
    width: 90%; /* Responsive width */
    margin: 20px auto; /* Center the wrapper */
    background-image: url('bg.jpg'); /* Optional additional background image */
    background-size: 115px 110px; /* Size for the additional image */
    background-repeat: no-repeat; /* Do not repeat the additional image */
    background-position: center top 15px; /* Position for the additional image */
    padding-top: 90px; /* Space for the additional image */
}

/* Heading styles */
h1 {
    color: white;
    font-size: 3rem; /* Responsive font size */
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px #000; /* Shadow for better readability */
}

h2 {
    color: white;
    font-size: 2rem; /* Responsive font size */
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px #000; /* Shadow for better readability */
}

/* Input box styles */
.input-box {
    margin: 20px 0;
    position: relative;
}

.input-box input {
    width: calc(100% - 60px); /* Full width minus padding */
    padding: 15px 20px;
    border-radius: 30px; /* Rounded corners */
    border: 1px solid rgba(248, 248, 248, 0.8); /* Light border */
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    color: #fff; /* Text color */
    font-size: 1rem; /* Responsive font size */
}

.input-box input:focus {
    border-color: #ffcc00; /* Highlight border on focus */
    outline: none; /* Remove default outline */
}

/* Icon styles */
.input-box i {
    position: absolute;
    right: 20px; /* Positioning */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for vertical centering */
    color: #ffcc00; /* Icon color */
    font-size: 1.5rem; /* Responsive font size */
}

/* Button styles */
.btn {
    background-color: #ffcc00; /* Button background color */
    border: none; /* No border */
    color: black; /* Text color */
    font-weight: bold; /* Bold text */
    border-radius: 30px; /* Rounded corners */
    padding: 15px; /* Padding */
    cursor: pointer; /* Pointer on hover */
    transition: background-color 0.3s, transform 0.2s; /* Transition effects */
    width: 100%; /* Full width */
    font-size: 1rem; /* Responsive font size */
    margin-top: 10px; /* Margin above the button */
}

.btn:hover {
    background-color: #e6b800; /* Darker shade on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Error message styles */
.error {
    color: #ff4d4d; /* Error text color */
    font-size: 1rem; /* Responsive font size */
    margin: 10px 0; /* Margin around error message */
}

/* Remember me and forget password section */
.remember-forget {
    display: flex; /* Flex box layout */
    justify-content: space-between; /* Space between items */
    align-items: center; /* Center vertically */
    margin-top: 10px; /* Margin above the section */
}

.remember-forget input {
    margin-right: 10px; /* Space between checkbox and label */
}

/* Footer styles */
footer {
    position: absolute; /* Position at the bottom */
    bottom: 20px; /* Distance from the bottom */
    width: 100%; /* Full width */
    text-align: center; /* Center text */
    color: white; /* Text color */
    font-size: 0.9rem; /* Responsive font size */
}

/* Media queries for responsiveness */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem; /* Smaller font size for mobile */
    }

    h2 {
        font-size: 1.5rem; /* Smaller font size for mobile */
    }

    .wrapper {
        padding: 20px; /* Less padding for smaller screens */
        margin-left: -20px;
    }

    .input-box input {
        font-size: 0.9rem; /* Smaller font size for inputs */
    }

    .btn {
        font-size: 0.9rem; /* Smaller font size for button */
    }
}