/* Reset margin and padding */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa; /* Light background for better contrast */
}

/* Fixed background image */
.background {
    background: url('/images/laptop.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Keeps image fixed */
    height: 100vh;
    display: flex;
    justify-content: center; /* Centers the form horizontally */
    align-items: flex-start; /* Aligns the form towards the top */
    padding-top: 5%; /* Adds some space at the top */
}

/* Form container styles */
.form-container {
    background-color: rgba(255, 255, 255, 0.667); /* Slightly transparent background */
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 540px;
    border-radius: 15px;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: fadeIn 0.5s ease-in-out; /* Smooth fade-in effect */
}



/* Form heading */
.form-container h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Input field styling */
.form-control {
    font-size: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f9f9f9; /* Light background for inputs */
}

/* Focus effect for input fields */
.form-control:focus {
    border-color: #ff7c7c;
    box-shadow: 0 0 8px rgba(255, 124, 124, 0.5);
    outline: none;
}

/* Button styling */
.btn-primary {
    background-color: #ff7c7c;
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    width: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 124, 124, 0.3);
    transition: all 0.3s ease;
    font-weight: bold;
}

/* Button hover effect */
.btn-primary:hover {
    background-color: #ff4f4f;
    box-shadow: 0 6px 12px rgba(255, 79, 79, 0.3);
    transform: translateY(-2px); /* Slight lift effect */
}

/* Text and links */
.text-center p {
    font-size: 0.9rem;
    color: #777;
    margin-top: 1rem;
}

.text-center a {
    color: #ff7c7c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Link hover effect */
.text-center a:hover {
    color: #ff4f4f;
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .form-container {
        padding: 2rem;
        max-width: 90%;
    }

    .form-container h2 {
        font-size: 2rem;
    }
}

/* Animation for form fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}