/* Removed dark outer translucent container */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Show state */
.auth-modal.show {
    display: flex;
    opacity: 1;
}

/* Auth Modal Content (Login Box) */
.auth-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9); /* Combines translate and scale */
    background: white;
    padding: 25px; /* Slightly increased padding for better spacing */
    border-radius: 12px; /* Softer corners */
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.25); /* Slightly softer shadow */
    text-align: center;
    width: 350px;
    max-width: 90%;
    min-height: 220px; /* Ensures consistent centering */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content inside */
    align-items: center;
    z-index: 3001;
    animation: fadeIn 0.3s ease-in-out forwards;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85); /* Starts slightly smaller */
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Input Fields */
.auth-modal-content input {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Buttons Container */
.auth-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Login Button */
#login-btn {
    background: #2a3b4c;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 48%;
}

/* Close Button */
#close-auth {
    background: #d9534f;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 48%;
}

/* Registration Link */
.register-link {
    margin-top: 15px;
    font-size: 14px;
}

.register-link a {
    color: #2a3b4c;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

