
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    height: 100vh; /* Ensure body takes full height */
    background: #000;
    background: url("images/NetlfixHome.jpeg") center/cover no-repeat;
    

}

/* body::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    background: url("images/NetlfixHome.jpeg") center/cover no-repeat;
} */

nav {
    position: fixed;
    padding: 25px 5%; /* Use percentage for responsiveness */
    z-index: 1;
}

nav a img {
    width: 70%; /* Use percentage for image width */
    max-width: 167px; /* Optional: set max width */
}

.form-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 4px;
    padding: 5%; /* Use percentage for padding */
    width: 90%; /* Set width to 90% for responsiveness */
    max-width: 450px; /* Keep max width */
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .75);
    margin-top: 20px; /* Add margin to separate from logo */
}

.form-wrapper h2 {
    color: #fff;
    font-size: 2rem; /* Default size */
    margin-bottom: 20px; /* Add margin below the heading */
}

.form-wrapper form {
    margin: 25px 0 65px;
}

/* Form Control Styles */
form .form-control {
    height: 50px;
    position: relative;
    margin-bottom: 16px;
}

.form-control input {
    height: 100%;
    width: 100%;
    background: #333;
    border: none;
    outline: none;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    padding: 0 20px;
}

/* Label Styling */
.form-control input:is(:focus, :valid) {
    background: #444;
    padding: 16px 20px 0;
}

.form-control label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    color: #8c8c8c;
}

.form-control input:is(:focus, :valid) ~ label {
    font-size: 0.75rem;
    transform: translateY(-130%);
}

/* Button Styling */
form button {
    width: 100%;
    padding: 16px 0;
    font-size: 1rem;
    background: transparent;
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid white;
    outline: none;
    margin: 25px 0 10px;
    cursor: pointer;
    transition: 0.1s ease;
}

form button:hover {
    background: #c40812;
}

/* Link Styling */
.form-wrapper a {
    text-decoration: none;
}

.form-wrapper a:hover {
    text-decoration: underline;
}

.form-wrapper :where(label, p, small, a) {
    color: #b3b3b3;
}

/* Help Section Styling */
form .form-help {
    display: flex;
    justify-content: space-between;
}

form .remember-me {
    display: flex;
}

form .remember-me input {
    margin-right: 5px;
    accent-color: #b3b3b3;
}

form .form-help :where(label, a) {
    font-size: 0.9rem;
}

/* New Users Link Styling */
.form-wrapper p a {
    color: #fff;
}

.form-wrapper small {
    display: block;
    margin-top: 15px;
    color: #b3b3b3;
}

.form-wrapper small a {
    color: #0071eb;
}

/* Mobile Styles */
@media (max-width: 740px) {
    body::before {
        display: none;
    }

    nav,
    .form-wrapper {
        padding: 20px; /* Keep padding consistent */
    }

    nav a img {
        width: 50%; /* Adjust logo size for smaller screens */
        max-width: 140px; /* Set a max width for the logo */
    }

    .form-wrapper {
        width: 90%; /* Ensure the form wrapper is responsive */
        top: 55%; /* Adjust vertical positioning for mobile */
        margin-top: 0; /* Reset margin to avoid additional space */
    }

    .form-wrapper h2 {
        font-size: 1.5rem; /* Adjust font size for smaller screens */
        margin-top: 10px; /* Add margin above the heading */
    }

    .form-wrapper form {
        margin: 15px 0 40px; /* Adjust margins */
    }
}

/* Tablet Styles */
@media (min-width: 741px) and (max-width: 1024px) {
    nav {
        padding: 25px 10%; /* Increased padding for tablets */
    }

    nav a img {
        width: 25%; /* Slightly smaller logo */
    }

    .form-wrapper {
        width: 80%; /* Reduce width on tablets */
        padding: 5%; /* Keep padding consistent */
    }

    .form-wrapper h2 {
        font-size: 1.75rem; /* Slightly smaller header */
    }

    .form-control input {
        font-size: 0.95rem; /* Slightly smaller font size */
    }

    form button {
        font-size: 0.95rem; /* Smaller button font */
    }

    form .form-help {
        flex-direction: column; /* Stack help elements */
    }

    form .remember-me {
        justify-content: flex-start; /* Align remember-me to the left */
    }
}

/* Footer Styles */
.footer {
    background: transparent;
    color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center-align items */
    text-align: center;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; 
}

.footer-content h3 {
    color: white;
}

.footer-content a {
    color: #fff; /* Footer link color */
    text-decoration: none; /* Remove underline */
    font-size: 1rem; /* Set base font size */
}

.footer-content h3:hover {
    color: #0071eb; /* Change color on hover */
}

.imgs {
    width: 40px; /* Adjust logo size */
    height: 40px; /* Maintain aspect ratio */
}

.footer p {
    margin: 10px 0 0; /* Add some margin to the top of the paragraph */
    font-size: 0.875rem; /* Smaller font size for the copyright text */
}

/* Responsive styles for smaller screens */
@media (max-width: 600px) {
    .footer {
        padding: 15px; /* Adjust padding for smaller screens */
    }

    .footer-content {
        flex-direction: column; /* Stack footer content on smaller screens */
        align-items: center; /* Center items */
    }

    .footer-content a {
        font-size: 0.9rem; /* Adjust font size for smaller screens */
    }

    .footer p {
        font-size: 0.75rem; /* Smaller font size for the copyright text */
    }
}
