/* Ensure Signup/Login Forms Are Always on Top */
.signup-container, .login-container {
    position: fixed;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1000; /* ✅ Ensure it appears above everything */
    display: none; /* Initially hidden */
}

/* Show the form when activated */
.show-form {
    display: block !important; /* ✅ Override hidden state */
}

/* Make Sure Menu is Behind Forms */
.menu-items {
    z-index: 500; /* ✅ Lower than login/signup */
}



/* Container for Signup & Login */
.auth-container {
    min-width: 100%;
    display: flex;
    justify-content: center; /* Center forms horizontally */
    align-items: flex-start; /* Align at the top */
    gap: 20px; /* Reduce gap to make it more compact */
    margin: 120px auto;
    max-width: 700px; /* Reduce max-width for a smaller appearance */
}

/* Individual Form Box - Smaller Size */
.auth-box {
    width: 75%; /* Reduce from 50% to 40% to make it smaller */
    padding: 15px; /* Reduce padding */
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #948dbb;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Input fields and buttons - Reduce Sizes */
input, button {
    width: 100%;
    padding: 8px; /* Reduce padding */
    margin-bottom: 12px; /* Reduce spacing */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem; /* Reduce font size */
    box-sizing: border-box;
}

/* Make Button Smaller */
button {
    background-color: #6a5acd;
    color: white;
    cursor: pointer;
    font-size: 0.9rem; /* Reduce button text size */
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #483d8b;
}

/* Make Headings Smaller */
.auth-box h1 {
    font-size: 1.2rem; /* Reduce heading size */
    text-align: center;
    margin-bottom: 15px;
}

/* Responsive: Stack Forms on Mobile */
@media screen and (max-width: 768px) {
    .auth-container {
        flex-direction: column; /* Stack forms vertically */
        max-width: 90%;
    }
    .auth-box {
        width: 100%; /* Full width on small screens */
    }
}
